Tpetra parallel linear algebra
Version of the Day
|
Implementation of the readLine stand-alone function in this namespace (see below). 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... | |
Implementation of the readLine stand-alone function in this namespace (see below).
Implementations are specialized on whether or not SC is a complex-valued type.
SC | The type of the value of each matrix entry. |
GO | The type of each (global) index of each matrix entry. |
isComplex | Whether SC is a complex-valued type. |
Definition at line 175 of file Tpetra_Details_ReadTriples.hpp.
|
static |
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 . |