HLIBpro  2.3.1
Public Member Functions | List of all members
TAutoMatrixIO Class Reference

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

#include <TMatrixIO.hh>

Inheritance diagram for TAutoMatrixIO:
TMatrixIO

Public Member Functions

virtual void write (const TMatrix *A, const std::string &filename) const
 write matrix A to file filename
 
virtual void write (const TMatrix *A, const std::string &filename, const std::string &matname) const
 
virtual std::unique_ptr< TMatrixread (const std::string &name) const
 read and return matrix from file filename
 
virtual std::unique_ptr< TMatrixread (const std::string &filename, const std::string &matname) const
 

Member Function Documentation

virtual std::unique_ptr< TMatrix > read ( const std::string &  filename,
const std::string &  matname 
) const
virtual

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

virtual void write ( const TMatrix A,
const std::string &  filename,
const std::string &  matname 
) const
virtual

write matrix A to file filename with optional matrix name matname (if file format has corresponding support)