HLIBpro
3.0
|
Class for matrix I/O in Matlab format.
#include <TMatrixIO.hh>
Public Member Functions | |
TMatlabMatrixIO (const bool perm=CFG::IO::permute_save) | |
ctor with internal permutation set to perm | |
template<typename value_t > | |
void | write (const TMatrix< value_t > *A, const std::string &fname) const |
write matrix A with name "M" to file fname | |
template<typename value_t > | |
std::unique_ptr< TMatrix< value_t > > | read (const std::string &fname) const |
read and return matrix from file fname (assuming only one entry available) | |
template<typename value_t > | |
std::unique_ptr< TMatrix< value_t > > | read (const std::string &fname, const std::string &mname) const |
read matrix with name mname from file fname | |