Tpetra parallel linear algebra
Version of the Day
|
Wrap a CrsMatrix instance's triangular solve in an Operator. More...
#include <Tpetra_CrsMatrixSolveOp.hpp>
Related Functions | |
(Note that these are not member functions.) | |
template<class OpScalar , class MatScalar , class LocalOrdinal , class GlobalOrdinal , class Node > | |
Teuchos::RCP< CrsMatrixSolveOp < OpScalar, MatScalar, LocalOrdinal, GlobalOrdinal, Node > > | createCrsMatrixSolveOp (const Teuchos::RCP< const CrsMatrix< MatScalar, LocalOrdinal, GlobalOrdinal, Node > > &A) |
Nonmember function that wraps a CrsMatrix in a CrsMatrixSolveOp. More... | |
Wrap a CrsMatrix instance's triangular solve in an Operator.
Scalar | Same as the first template parameter of Operator. The type of the entries of the MultiVector input and output of apply(). Not necessarily the same as the first template parameter of the CrsMatrix used to create this object. |
MatScalar | Same as the first template parameter of CrsMatrix. The type of the entries of the sparse matrix. Not necessarily the same as the type of the entries of the MultiVector input and output of apply(). |
LocalOrdinal | Same as the second template parameter of CrsMatrix and Operator. |
GlobalOrdinal | Same as the third template parameter of CrsMatrix and Operator. |
Node | Same as the fourth template parameter of CrsMatrix and Operator. |
This class' apply() method does a "local" triangular solve. "Local" is in quotes because apply() does the same communication (Import and Export) operations that CrsMatrix's apply() method would do for a sparse matrix-vector multiply, but the triangular solve is restricted to each process' part of the data. Thus, it is not a triangular solve of a fully distributed triangular matrix.
Here are some situations where this operation is useful:
MatScalar
of entries in the matrix differs from the type Scalar
of entries in the MultiVector input and output of apply().
|
related |
Nonmember function that wraps a CrsMatrix in a CrsMatrixSolveOp.
The function has the same template parameters of CrsMatrixSolveOp.
A | [in] The CrsMatrix instance to wrap in an CrsMatrixSolveOp. |
Definition at line 381 of file Tpetra_CrsMatrixSolveOp.hpp.