53typename Reindex_LinearProblem<Scalar, LocalOrdinal, GlobalOrdinal, Node>::NewType
61 this->origObj_ = origProblem;
63 Teuchos::RCP<cm_t> origMatrix = Teuchos::rcp<cm_t>(
dynamic_cast<cm_t *
>(origProblem->getMatrix().get()),
false);
64 Teuchos::RCP<mv_t> origRHS = origProblem->getRHS();
65 Teuchos::RCP<mv_t> origLHS = origProblem->getLHS();
66 Teuchos::RCP<map_t const> origRowMap = origMatrix->getMap();
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_));
80 Teuchos::RCP<cm_t> newMatrix = ((*matTrans_)(origMatrix));
81 Teuchos::RCP<mv_t> newLHS = ((*lhsTrans_)(origLHS));
82 Teuchos::RCP<mv_t> newRHS = ((*rhsTrans_)(origRHS));
84 this->newObj_ = Teuchos::rcp<lp_t>(
new lp_t(newMatrix, newLHS, newRHS));