HLIBpro  2.0
Classes
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  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  TPSGridVis
 Class for grid visualisation in PostScript 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  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.

TCoordinate * read_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.

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.

TMatrix * read_matrix (const char *filename)
 Read matrix from file with automatic file format detection. More...
 
TMatrix * read_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...
 
TLinearOperator * read_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.

TVector * read_vector (const char *filename)
 Read vector from file with automatic file format detection. More...
 
TVector * read_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

TCoordinate* HLIB::read_coord ( const char *  filename)

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

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.

TLinearOperator* HLIB::read_linop ( const char *  filename)

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

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.

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.

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.

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.

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
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.

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

Write linear operator A to file filename in HLIBpro format.

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
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.

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
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.