dune-istl  2.2.1
Classes | Namespaces | Enumerations | Functions
matrixmarket.hh File Reference

Provides classes for reading and writing MatrixMarket Files with an extension for parallel matrices. More...

Go to the source code of this file.

Classes

class  Dune::MatrixMarketFormatError
struct  Dune::mm_multipliers< M >
struct  Dune::mm_multipliers< BCRSMatrix< FieldMatrix< B, i, j >, A > >

Namespaces

namespace  Dune

Enumerations

enum  LineType
enum  
enum  MM_TYPE
enum  MM_CTYPE
enum  MM_STRUCTURE

Functions

void Dune::mm_read_header (std::size_t &rows, std::size_t &cols, MMHeader &header, std::istream &istr, bool isVector)
template<typename T , typename A , int entries>
void Dune::mm_read_vector_entries (Dune::BlockVector< Dune::FieldVector< T, entries >, A > &vector, std::size_t size, std::istream &istr)
template<typename T , typename A , int entries>
void Dune::readMatrixMarket (Dune::BlockVector< Dune::FieldVector< T, entries >, A > &vector, std::istream &istr)
 Reads a BlockVector from a matrix market file.
template<typename T , typename A , int brows, int bcols>
void Dune::readMatrixMarket (Dune::BCRSMatrix< Dune::FieldMatrix< T, brows, bcols >, A > &matrix, std::istream &istr)
 Reads a sparse matrix from a matrix market file.
template<typename B , int i, int j>
void Dune::mm_print_entry (const FieldMatrix< B, i, j > &entry, typename FieldMatrix< B, i, j >::size_type rowidx, typename FieldMatrix< B, i, j >::size_type colidx, std::ostream &ostr)
template<typename V >
void Dune::mm_print_vector_entry (const V &entry, std::ostream &ostr, const integral_constant< int, 1 > &)
template<typename V >
void Dune::mm_print_vector_entry (const V &vector, std::ostream &ostr, const integral_constant< int, 0 > &)
template<typename T , typename A , int i>
std::size_t Dune::countEntries (const BlockVector< FieldVector< T, i >, A > &vector)
template<typename V >
void Dune::writeMatrixMarket (const V &vector, std::ostream &ostr, const integral_constant< int, 0 > &)
template<typename M >
void Dune::writeMatrixMarket (const M &matrix, std::ostream &ostr, const integral_constant< int, 1 > &)
template<typename M >
void Dune::writeMatrixMarket (const M &matrix, std::ostream &ostr)
 writes a ISTL matrix or vector to a stream in matrix market format.
template<typename M >
void Dune::storeMatrixMarket (const M &matrix, std::string filename)
 Stores a parallel matrix/vector in matrix market format in a file.
template<typename M , typename G , typename L >
void Dune::storeMatrixMarket (const M &matrix, std::string filename, const OwnerOverlapCopyCommunication< G, L > &comm, bool storeIndices=true)
 Stores a parallel matrix/vector in matrix market format in a file.
template<typename M , typename G , typename L >
void Dune::loadMatrixMarket (M &matrix, const std::string &filename, OwnerOverlapCopyCommunication< G, L > &comm, bool readIndices=true)
 Load a parallel matrix/vector stored in matrix market format.
template<typename M >
void Dune::loadMatrixMarket (M &matrix, const std::string &filename)
 Load a matrix/vector stored in matrix market format.

Detailed Description

Provides classes for reading and writing MatrixMarket Files with an extension for parallel matrices.

Author
Markus Blatt

Variable Documentation

MM_CTYPE ctype
std::size_t index
T number
MM_STRUCTURE structure
MM_TYPE type