Quantum++  v0.8
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 >
Derived qpp::loadMATLABmatrix (const std::string &mat_file, const std::string &var_name)
 Loads an Eigen dynamic matrix from a MATLAB .mat file, generic version. More...
 
template<>
dmat qpp::loadMATLABmatrix (const std::string &mat_file, const std::string &var_name)
 Loads an Eigen dynamic matrix from a MATLAB .mat file, specialization for double matrices (qpp::dmat) More...
 
template<>
cmat qpp::loadMATLABmatrix (const std::string &mat_file, const std::string &var_name)
 Loads an Eigen dynamic matrix from a MATLAB .mat file, specialization for complex matrices (qpp::cmat) More...
 
template<typename Derived >
void qpp::saveMATLABmatrix (const Eigen::MatrixBase< Derived > &A, const std::string &mat_file, const std::string &var_name, const std::string &mode)
 Saves an Eigen dynamic matrix to a MATLAB .mat file, generic version. More...
 
template<>
void qpp::saveMATLABmatrix (const Eigen::MatrixBase< dmat > &A, const std::string &mat_file, const std::string &var_name, const std::string &mode)
 Saves an Eigen dynamic matrix to a MATLAB .mat file, specialization for double matrices (qpp::dmat) More...
 
template<>
void qpp::saveMATLABmatrix (const Eigen::MatrixBase< cmat > &A, const std::string &mat_file, const std::string &var_name, const std::string &mode)
 Saves an Eigen dynamic matrix to a MATLAB .mat file, specialization for complex matrices (qpp::cmat) More...
 

Detailed Description

Input/output interfacing with MATLAB.