HLIBpro 3.1
Loading...
Searching...
No Matches
THproMatrixIO Class Reference

Class for matrix I/O in HLIB format.

#include <TMatrixIO.hh>

Public Member Functions

 THproMatrixIO (const bool compressed=false)
 ctor with compression set to compressed
 
void set_compression (const bool compressed)
 set internal compression usage to compressed
 
template<typename value_t >
void write (const TMatrix< value_t > *A, const std::string &fname) const
 write matrix A 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
 
template<typename value_t >
void write_linop (const TLinearOperator< value_t > *A, const std::string &fname) const
 write linear operator A to file fname
 
template<typename value_t >
std::unique_ptr< TLinearOperator< value_t > > read_linop (const std::string &fname) const
 read and return linear operator from file fname
 

Protected Attributes

bool _compressed
 flag for using compression