10#ifndef TPETRA_REINDEX_LINEARPROBLEM_DEF_HPP
11#define TPETRA_REINDEX_LINEARPROBLEM_DEF_HPP
27template <
class Scalar,
35 , matTrans_(Teuchos::
null)
36 , lhsTrans_(Teuchos::
null)
37 , rhsTrans_(Teuchos::
null) {
53typename Reindex_LinearProblem<Scalar, LocalOrdinal, GlobalOrdinal, Node>::NewType
69 if (newRowMap_.get() ==
nullptr) {
70 newRowMap_ = Teuchos::rcp<map_t const>(
new map_t(
origRowMap->getGlobalNumElements(),
origRowMap->getLocalNumElements(), 0,
origRowMap->getComm()));
76 matTrans_ = Teuchos::rcp<r_cm_t>(
new r_cm_t(newRowMap_));
77 lhsTrans_ = Teuchos::rcp<r_mv_t>(
new r_mv_t(newRowMap_));
78 rhsTrans_ = Teuchos::rcp<r_mv_t>(
new r_mv_t(newRowMap_));
95#define TPETRA_REINDEXLINEARPROBLEM_INSTANT(SCALAR, LO, GO, NODE) \
96 template class Reindex_LinearProblem<SCALAR, LO, GO, NODE>;
Declaration of the Tpetra::Reindex_LinearProblem class.
Struct that holds views of the contents of a CrsMatrix.
Teuchos::RCP< const CrsMatrix< Scalar, LocalOrdinal, GlobalOrdinal, Node > > origMatrix
The original matrix.
Teuchos::RCP< const map_type > origRowMap
Original row map of matrix.
Class that encapulates linear problem (Ax = b).
Reindex_LinearProblem(Teuchos::RCP< Map< LocalOrdinal, GlobalOrdinal, Node > const > newRowMap)
NewType operator()(OriginalType const &origProblem)
Namespace Tpetra contains the class and methods constituting the Tpetra library.