HLIBpro  3.0
TMatlabVectorIO Class Reference

Class for vector I/O in Matlab format.

#include <TVectorIO.hh>

Public Member Functions

template<typename value_t >
void write (const TVector< value_t > *v, const std::string &fname) const
 write vector v with name "v" to file fname
 
template<typename value_t >
void write (const TVector< value_t > *v, const std::string &fname, const std::string &vname) const
 write vector v with name vname to file fname
 
template<typename value_t >
std::unique_ptr< TVector< value_t > > read (const std::string &fname) const
 read first vector in file fname
 
template<typename value_t >
std::unique_ptr< TVector< value_t > > read (const std::string &fname, const std::string &vname) const
 

Member Function Documentation

◆ read()

std::unique_ptr< TVector< value_t > > read ( const std::string &  fname,
const std::string &  vname 
) const

read and return vector named vname from file fname (if vname = "", return first vector)