MyraMath
Functions
matrixmarket.h File Reference

Writes/reads a SparseMatrix to/from a MatrixMarket file (*.mtx) See http://math.nist.gov/MatrixMarket/ for test inputs in this format. More...

#include <myramath/utility/Number.h>
#include <myramath/sparse/SparseMatrix.h>
#include <myramath/sparse/SparseMatrixRange.h>
Include dependency graph for matrixmarket.h:

Go to the source code of this file.

Functions

SparseMatrix< NumberS > myra::detail::read_matrixmarketS (const char *filename)
 
SparseMatrix< NumberD > myra::detail::read_matrixmarketD (const char *filename)
 
SparseMatrix< NumberC > myra::detail::read_matrixmarketC (const char *filename)
 
SparseMatrix< NumberZ > myra::detail::read_matrixmarketZ (const char *filename)
 
void myra::detail::write_matrixmarketS (const CSparseMatrixRange< NumberS > &A, const char *filename)
 
void myra::detail::write_matrixmarketD (const CSparseMatrixRange< NumberD > &A, const char *filename)
 
void myra::detail::write_matrixmarketC (const CSparseMatrixRange< NumberC > &A, const char *filename)
 
void myra::detail::write_matrixmarketZ (const CSparseMatrixRange< NumberZ > &A, const char *filename)
 
template<class Number >
SparseMatrix< Number > myra::read_matrixmarket (const char *filename)
 Reads a SparseMatrix from a MatrixMarket file.
 
template<class Number >
void myra::write_matrixmarket (const CSparseMatrixRange< Number > &A, const char *filename)
 Writes a SparseMatrix to a MatrixMarket file.
 

Detailed Description

Writes/reads a SparseMatrix to/from a MatrixMarket file (*.mtx) See http://math.nist.gov/MatrixMarket/ for test inputs in this format.