HLIBpro  3.0
TAutoVectorIO Class Reference

Class for vector I/O with automatic file format detection.

#include <TVectorIO.hh>

Public Member Functions

template<typename value_t >
void write (const TVector< value_t > *A, const std::string &filename) const
 write vector A to file filename
 
template<typename value_t >
void write (const TVector< value_t > *A, const std::string &filename, const std::string &vecname) const
 
template<typename value_t >
std::unique_ptr< TVector< value_t > > read (const std::string &filename) const
 read and return vector from file filename
 
template<typename value_t >
std::unique_ptr< TVector< value_t > > read (const std::string &filename, const std::string &vecname) const
 

Member Function Documentation

◆ read()

std::unique_ptr< TVector< value_t > > read ( const std::string &  filename,
const std::string &  vecname 
) const

read and return vector from file filename with optional vector name vecname (if file format has corresponding support)

◆ write()

void write ( const TVector< value_t > *  A,
const std::string &  filename,
const std::string &  vecname 
) const

write vector A to file filename with optional vector name vecname (if file format has corresponding support)