matrix_market_stream<T> [MTL Home] Programmers Guide
  Contents | Index |  Search 


Category:utilities Component type:type
Description
This class simplifies the job of creating matrices from files stored in the Matrix Market format. All matrix types have a constructor that takes a matrix_market_stream object. One can also access the elements (of type entry2) from a matrix stream using the stream operator. The stream handles both real and complex numbers.
    Usage:
      matrix_market_stream mms( fielname );
      Matrix A(mms);
 
Example
Definition
Template Parameters

ParameterDescriptionDefault
Tthe matrix element type (double or complex) 
Model of
Members
Member Where defined Description
matrix_market_stream (char* filename)   Construct from filename
~matrix_market_stream ()   Destructor, closes the file
bool eof () const   At the end of the file yet?
int nrows () const   Number of rows in matrix
int ncols () const   Number of columns in matrix
int nnz () const   Number of non-zeroes in matrix
bool is_symmetric () const    
bool is_complex () const    
bool is_hermitian () const    
int count    
FILE * fin    
MM_typecode matcode    
int row, col, nz    
bool isComplex    
bool isSymmetric    
bool isHermitian    
New members
Notes
See also

[MTL Home] Copyright © 1998,1999 University of Notre Dame. All Rights Reserved.