Quantum++  v1.0-rc3
A modern C++11 quantum computing library
matlab.h File Reference

Input/output interfacing with MATLAB. More...

#include "mat.h"
#include "mex.h"

Go to the source code of this file.

Namespaces

 qpp
 Quantum++ main namespace.
 

Functions

template<typename Derived >
std::enable_if< std::is_same< typename Derived::Scalar, cplx >::value, dyn_mat< cplx > >::type qpp::loadMATLAB (const std::string &mat_file, const std::string &var_name)
 Loads a complex Eigen dynamic matrix from a MATLAB .mat file,. More...
 
template<typename Derived >
std::enable_if<!std::is_same< typename Derived::Scalar, cplx >::value, dyn_mat< typename Derived::Scalar > >::type qpp::loadMATLAB (const std::string &mat_file, const std::string &var_name)
 Loads a non-complex Eigen dynamic matrix from a MATLAB .mat file,. More...
 
template<typename Derived >
std::enable_if< std::is_same< typename Derived::Scalar, cplx >::value >::type qpp::saveMATLAB (const Eigen::MatrixBase< Derived > &A, const std::string &mat_file, const std::string &var_name, const std::string &mode)
 Saves a complex Eigen dynamic matrix to a MATLAB .mat file,. More...
 
template<typename Derived >
std::enable_if< !std::is_same< typename Derived::Scalar, cplx >::value >::type qpp::saveMATLAB (const Eigen::MatrixBase< Derived > &A, const std::string &mat_file, const std::string &var_name, const std::string &mode)
 Saves a non-complex Eigen dynamic matrix to a MATLAB .mat file,. More...
 

Detailed Description

Input/output interfacing with MATLAB.