HLIBpro 3.1
Loading...
Searching...
No Matches
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()

template<typename value_t >
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()

template<typename value_t >
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)