Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Classes | Functions
Teuchos::MatrixMarket::Raw Namespace Reference

Classes

class  Element
 Stores one entry of a sparse matrix. More...
class  Adder
 To be used with Checker for "raw" sparse matrix input. More...
class  Checker
 Tool for debugging the syntax of a Matrix Market file containing a sparse matrix. More...
class  Reader
 Read a sparse matrix from a Matrix Market file into raw CSR (compressed sparse row) storage. More...
class  Writer
 Write a sparse matrix from raw CSR (compressed sparse row) storage to a Matrix Market file. More...

Functions

template<class Scalar , class Ordinal >
std::ostream & operator<< (std::ostream &out, const Element< Scalar, Ordinal > &elt)
 Print out an Element to the given output stream.

Function Documentation

template<class Scalar , class Ordinal >
std::ostream& Teuchos::MatrixMarket::Raw::operator<< ( std::ostream &  out,
const Element< Scalar, Ordinal > &  elt 
)

Print out an Element to the given output stream.

This method is suitable for printing a sparse matrix to a Matrix Market file. We try to print out floating-point values with enough digits to reproduce the results, but in general this routine does not promise that the matrix entry later read in from this printing will be bitwise identical to the matrix entry supplied as input. There _are_ printing algorithms that make this guarantee; we just haven't implemented them yet here.

Definition at line 190 of file Teuchos_MatrixMarket_Raw_Adder.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines