Tpetra parallel linear algebra
Version of the Day
|
Complex-arithmetic partial specialization of ReadLine. More...
#include <Tpetra_Details_ReadTriples.hpp>
Static Public Member Functions | |
static int | readLine (std::function< int(const GO, const GO, const SC &)> processTriple, const std::string &line, const std::size_t lineNumber, const bool tolerant=false, std::ostream *errStrm=NULL, const bool debug=false) |
Take a line from the Matrix Market file or input stream, and process the sparse matrix entry in that line. More... | |
Complex-arithmetic partial specialization of ReadLine.
This helps implement the readLine stand-alone function in this namespace (see below).
SC | The type of the value of each matrix entry. |
GO | The type of each (global) index of each matrix entry. |
Definition at line 181 of file Tpetra_Details_ReadTriples.hpp.
|
inlinestatic |
Take a line from the Matrix Market file or input stream, and process the sparse matrix entry in that line.
processTriple | [in] Closure, generally with side effects, that takes in and stores off a sparse matrix entry. First argument is the (global) row index, second argument is the (global) column index, and third argument is the value of the entry. The closure must NOT do MPI communication. Return value is an error code, that is zero if and only if the closure succeeded. |
line | [in] Current line of the Matrix Market file or input stream to read. |
lineNumber | [in] Current line number in the file or input stream. |
tolerant | [in] Whether to read tolerantly. |
errStrm | [in] If not NULL, print any error messages to this stream. |
debug | [in] If true, print debug messages to *errStrm . |
Definition at line 203 of file Tpetra_Details_ReadTriples.hpp.