Tpetra Matrix/Vector Services Version of the Day
Static Public Member Functions
Tpetra::MatrixMarket::Raw::Reader< Scalar, Ordinal > Class Template Reference

"Raw" reader for debugging a Matrix Market file. More...

#include <MatrixMarket_raw.hpp>

List of all members.

Static Public Member Functions

static bool readFile (const Comm< int > &comm, const std::string &filename, const bool echo, const bool tolerant, const bool debug=false)
 Read the sparse matrix from the given file.
static bool read (const Comm< int > &comm, const RCP< std::istream > &in, const bool echo, const bool tolerant, const bool debug=false)
 Read the sparse matrix from the given input stream.

Detailed Description

template<class Scalar, class Ordinal>
class Tpetra::MatrixMarket::Raw::Reader< Scalar, Ordinal >

"Raw" reader for debugging a Matrix Market file.

This class' methods are useful for examining the contents of a Matrix Market file, and checking the integrity of its data. See MatrixMarket_Tpetra.hpp for a Matrix Market reader that constructs a Tpetra::CrsMatrix object.

Definition at line 429 of file MatrixMarket_raw.hpp.


Member Function Documentation

template<class Scalar , class Ordinal >
static bool Tpetra::MatrixMarket::Raw::Reader< Scalar, Ordinal >::readFile ( const Comm< int > &  comm,
const std::string &  filename,
const bool  echo,
const bool  tolerant,
const bool  debug = false 
) [inline, static]

Read the sparse matrix from the given file.

This is a collective operation. Only Rank 0 opens the file and reads data from it, but all ranks participate and wait for the final result.

Note:
This whole "raw" reader is meant for debugging and diagnostics of syntax errors in the Matrix Market file; it's not performance-oriented. That's why we do all the broadcasts of and checks for "success".

Definition at line 442 of file MatrixMarket_raw.hpp.

template<class Scalar , class Ordinal >
static bool Tpetra::MatrixMarket::Raw::Reader< Scalar, Ordinal >::read ( const Comm< int > &  comm,
const RCP< std::istream > &  in,
const bool  echo,
const bool  tolerant,
const bool  debug = false 
) [inline, static]

Read the sparse matrix from the given input stream.

This is a collective operation. Only Rank 0 reads from the given input stream, but all ranks participate and wait for the final result.

Note:
This whole "raw" reader is meant for debugging and diagnostics of syntax errors in the Matrix Market file; it's not performance-oriented. That's why we do all the broadcasts of and checks for "success".

Definition at line 495 of file MatrixMarket_raw.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines