HLIBpro  2.6
Input/Output

Classes

class  TClusterBasisIO< T >
 base class for cluster basis input/output More...
 
class  THLibClusterBasisIO< T >
 cluster basis I/O in HLIBpro file format More...
 
class  TClusterBasisVis< T >
 base class for cluster basis visualisation More...
 
class  TPSClusterBasisVis< T >
 cluster basis visualisation in PostScript format More...
 
class  TClusterVis
 base class for cluster tree visualisation More...
 
class  TBlockClusterVis
 base class for block cluster tree visualisation More...
 
class  T2DClusterVis
 base class for cluster tree visualisation in 2D More...
 
class  TPSClusterVis
 class for cluster tree visualisation in PostScript format More...
 
class  TPDFClusterVis
 class for cluster tree visualisation in PDF format More...
 
class  T2DBlockClusterVis
 base class for block cluster tree visualisation in 2D More...
 
class  TPSBlockClusterVis
 class for block cluster tree visualisation in PostScript format More...
 
class  TPDFBlockClusterVis
 class for block cluster tree visualisation in PDF format More...
 
class  TVTKBlockClusterVis
 class for block cluster tree visualisation in VTK More...
 
class  TVRMLClusterVis
 cluster output in VRML format More...
 
class  TGVClusterVis
 cluster tree visualisation in GraphViz format More...
 
class  TGVBlockClusterVis
 block cluster tree visualisation in GraphViz format More...
 
class  TCoordIO
 Base class for coordinate I/O defining interface. More...
 
class  TAutoCoordIO
 Class for coordinate I/O with file format detection. More...
 
class  TSAMGCoordIO
 Class for coordinate I/O in SAMG format. More...
 
class  TMatlabCoordIO
 Class for coordinate I/O in Matlab format. More...
 
class  THLibCoordIO
 Class for coordinate I/O in HLIB format. More...
 
class  TMMCoordIO
 Class for coordinate I/O in MatrixMarket format. More...
 
class  TPLTMGCoordIO
 Class for coordinate I/O in PLTMG format. More...
 
class  TCoordVis
 Base class for coordinate visualisation. More...
 
class  TPSCoordVis
 Coordinate visualisation in PostScript format. More...
 
class  TVRMLCoordVis
 Coordinate visualisation in VRML format. More...
 
class  TVTKCoordVis
 Coordinate visualisation in VTK format. More...
 
class  TGridIO
 Base class for reading grids. More...
 
class  TAutoGridIO
 Class for grid I/O with file format detection. More...
 
class  THLibGridIO
 Class for grid I/O in HLIB format. More...
 
class  TPlyGridIO
 Class for grid I/O in Ply format. More...
 
class  TSurfMeshGridIO
 Class for grid I/O in Surface Mesh format. More...
 
class  TGMSHGridIO
 Class for grid I/O in GMSH format. More...
 
class  TGridVis
 Base class for grid visualisation. More...
 
class  T2DGridVis
 Base class for 2D grid visualisation (by projection). More...
 
class  TPSGridVis
 Class for grid visualisation in PostScript format. More...
 
class  TPDFGridVis
 Class for grid visualisation in PDF format. More...
 
class  TVRMLGridVis
 Class for grid visualisation in VRML format. More...
 
class  TVTKGridVis
 Class for grid visualisation in VTK format. More...
 
class  TMatrixIO
 Base class for Matrix IO defining interface. More...
 
class  TAutoMatrixIO
 Class for matrix I/O with automatic file format detection. More...
 
class  TOctaveMatrixIO
 Class for matrix I/O in octave format. More...
 
class  TSAMGMatrixIO
 Class for matrix I/O in SAMG format. More...
 
class  TMatlabMatrixIO
 Class for matrix I/O in Matlab format. More...
 
class  THLibMatrixIO
 Class for matrix I/O in HLIB format. More...
 
class  TPLTMGMatrixIO
 Class for matrix I/O in PLTMG format. More...
 
class  THBMatrixIO
 Class for matrix I/O in Harwell-Boeing and Rutherford-Boeing format. More...
 
class  TMMMatrixIO
 Class for matrix I/O in MatrixMarket format. More...
 
class  THDF5MatrixIO
 Class for matrix I/O in HDF5 format. More...
 
class  TMatrixVis
 Base class for matrix visualisation. More...
 
class  T2DMatrixVis
 Implements 2D based matrix visualisation. More...
 
class  TPSMatrixVis
 class for matrix visualisation in PostScript format More...
 
class  TPDFMatrixVis
 class for matrix visualisation in PDF format More...
 
class  TVectorIO
 Base class for vector IO defining interface. More...
 
class  TAutoVectorIO
 Class for vector I/O with automatic file format detection. More...
 
class  TSAMGVectorIO
 Class for vector I/O in SAMG format. More...
 
class  TMatlabVectorIO
 Class for vector I/O in Matlab format. More...
 
class  THLibVectorIO
 Class for vector I/O in HLIB format. More...
 
class  THBVectorIO
 Class for vector I/O in Harwell-Boeing and Rutherford-Boeing format. More...
 
class  TMMVectorIO
 Class for vector I/O in MatrixMarket format. More...
 

Coordinate I/O

Functions for input/output of coordinates.

std::unique_ptr< TCoordinateread_coord (const char *filename)
 Read coord from file with automatic file format detection. More...
 
void write_coord (const TCoordinate *coord, const char *filename)
 Write coord to file with automatic choice of file format. More...
 

Grid I/O

Functions for input/output of grids.

std::unique_ptr< TGrid > read_grid (const char *filename)
 Read grid from file with automatic file format detection. More...
 
void write_grid (const TGrid *grid, const char *filename)
 Write grid to file with automatic file format detection. More...
 

Matrix I/O

Functions for input/output of matrices.

std::unique_ptr< TMatrixread_matrix (const char *filename)
 Read matrix from file with automatic file format detection. More...
 
std::unique_ptr< TMatrixread_matrix (const char *filename, const char *matname)
 Read matrix from file with automatic file format detection. More...
 
void write_matrix (const TMatrix *A, const char *filename)
 Write matrix to file with automatic choice of file format. More...
 
void write_matrix (const TMatrix *A, const char *filename, const char *matname)
 Write matrix to file with automatic choice of file format. More...
 
std::unique_ptr< TLinearOperatorread_linop (const char *filename)
 Read linear operator from file. More...
 
void write_linop (const TLinearOperator *A, const char *filename)
 Write linear operator to file. More...
 

Vector I/O

Functions for input/output of vectors.

std::unique_ptr< TVectorread_vector (const char *filename)
 Read vector from file with automatic file format detection. More...
 
std::unique_ptr< TVectorread_vector (const char *filename, const char *vecname)
 Read vector from file with automatic file format detection. More...
 
void write_vector (const TVector *A, const char *filename)
 Write vector to file with automatic choice of file format. More...
 
void write_vector (const TVector *A, const char *filename, const char *vecname)
 Write vector to file with automatic choice of file format. More...
 

Detailed Description

This modules provides classes and functions for input/output of matrices, vectors, coordinates and grids.

#include <hlib-io.hh>

Function Documentation

◆ read_coord()

std::unique_ptr< TCoordinate > HLIB::read_coord ( const char *  filename)

Read coord from file filename while the format of the file is detected automatically.

◆ read_grid()

std::unique_ptr< TGrid > HLIB::read_grid ( const char *  filename)

Read grid from file filename while the format of the file is detected automatically based on the file content and the file name.

◆ read_linop()

std::unique_ptr< TLinearOperator > HLIB::read_linop ( const char *  filename)

Read linear operator from file filename. Currently only the HLIBpro file format supports linear operators.

◆ read_matrix() [1/2]

std::unique_ptr< TMatrix > HLIB::read_matrix ( const char *  filename)

Read matrix from file filename while the format of the file is detected automatically. If the file format supports storage of several matrices (or other objects), only the first matrix will be read.

◆ read_matrix() [2/2]

std::unique_ptr< TMatrix > HLIB::read_matrix ( const char *  filename,
const char *  matname 
)

Read matrix from file filename while the format of the file is detected automatically. If the file format supports named matrices, the matrix with the name matname will be read. Furthermore, if the file format supports storage of several matrices (or other objects), only the first matrix will be read.

◆ read_vector() [1/2]

std::unique_ptr< TVector > HLIB::read_vector ( const char *  filename)

Read vector from file filename while the format of the file is detected automatically. If the file format supports storage of several matrices (or other objects), only the first vector will be read.

◆ read_vector() [2/2]

std::unique_ptr< TVector > HLIB::read_vector ( const char *  filename,
const char *  vecname 
)

Read vector from file filename while the format of the file is detected automatically. If the file format supports named matrices, the vector with the name vecname will be read. Furthermore, if the file format supports storage of several matrices (or other objects), only the first vector will be read.

◆ write_coord()

void HLIB::write_coord ( const TCoordinate coord,
const char *  filename 
)

Write coord coord to file filename with automatic choice of file format based on filename suffix:

  • hm : HLIBpro format
  • mat, m : Matlab format
  • coo : SAMG format

◆ write_grid()

void HLIB::write_grid ( const TGrid *  grid,
const char *  filename 
)

Write grid to file filename while the format of the file is detected automatically based on the file name.

◆ write_linop()

void HLIB::write_linop ( const TLinearOperator A,
const char *  filename 
)

Write linear operator A to file filename in HLIBpro format.

◆ write_matrix() [1/2]

void HLIB::write_matrix ( const TMatrix A,
const char *  filename 
)

Write matrix A to file filename while the format of the file is chosen automatically based upon the filename suffix.

  • hm : HLIBpro format
  • mat, m : Matlab format
  • hb, rb, rua, rsa, psa : Harwell/Boeing format
  • amg : SAMG format
  • mtx : MatrixMarket format
  • hdf, h5 : HDF5 format

◆ write_matrix() [2/2]

void HLIB::write_matrix ( const TMatrix A,
const char *  filename,
const char *  matname 
)

Write matrix A to file filename while the format of the file is chosen automatically based upon the filename suffix. If the file format supports named matrices, the matrix will be stored under the name matname.

◆ write_vector() [1/2]

void HLIB::write_vector ( const TVector A,
const char *  filename 
)

Write vector A to file filename while the format of the file is chosen automatically based upon the filename suffix.

  • hm : HLIBpro format
  • mat, m : Matlab format
  • hb, rb, rua, rsa, psa : Harwell/Boeing format
  • rhs, sol : SAMG format
  • mtx : VectorMarket format

◆ write_vector() [2/2]

void HLIB::write_vector ( const TVector A,
const char *  filename,
const char *  vecname 
)

Write vector A to file filename while the format of the file is chosen automatically based upon the filename suffix. If the file format supports named matrices, the vector will be stored under the name vecname.