42 #ifndef TPETRA_EXPERIMENTAL_BLOCKCRSMATRIX_HELPERS_DECL_HPP 43 #define TPETRA_EXPERIMENTAL_BLOCKCRSMATRIX_HELPERS_DECL_HPP 48 #include <Tpetra_ConfigDefs.hpp> 53 namespace Experimental {
56 template<
class Scalar,
class LO,
class GO,
class Node>
57 void blockCrsMatrixWriter(BlockCrsMatrix<Scalar,LO,GO,Node>
const &A, std::string
const &fileName);
60 template<
class Scalar,
class LO,
class GO,
class Node>
61 void blockCrsMatrixWriter(BlockCrsMatrix<Scalar,LO,GO,Node>
const &A, std::string
const &fileName, Teuchos::ParameterList
const ¶ms);
64 template<
class Scalar,
class LO,
class GO,
class Node>
76 template<
class Scalar,
class LO,
class GO,
class Node>
77 void blockCrsMatrixWriter(BlockCrsMatrix<Scalar,LO,GO,Node>
const &A, std::ostream &os, Teuchos::ParameterList
const ¶ms);
83 template<
class Scalar,
class LO,
class GO,
class Node>
84 void writeMatrixStrip(BlockCrsMatrix<Scalar,LO,GO,Node>
const &A, std::ostream &os, Teuchos::ParameterList
const ¶ms);
93 template<
class Scalar,
class LO,
class GO,
class Node>
94 Teuchos::RCP<BlockCrsMatrix<Scalar, LO, GO, Node>>
99 template<
class LO,
class GO,
class Node>
100 Teuchos::RCP<const Tpetra::Map<LO,GO,Node>>
106 #endif // TPETRA_EXPERIMENTAL_BLOCKCRSMATRIX_HELPERS_DECL_HPP Teuchos::RCP< BlockCrsMatrix< Scalar, LO, GO, Node > > convertToBlockCrsMatrix(const Tpetra::CrsMatrix< Scalar, LO, GO, Node > &pointMatrix, const LO &blockSize)
Non-member constructor that creates a BlockCrsMatrix from an existing point CrsMatrix.
Namespace Tpetra contains the class and methods constituting the Tpetra library.
Sparse matrix that presents a row-oriented interface that lets users read or modify entries...
void writeMatrixStrip(BlockCrsMatrix< Scalar, LO, GO, Node > const &A, std::ostream &os, Teuchos::ParameterList const ¶ms)
Helper function called by blockCrsMatrixWriter.
Declaration of the Tpetra::CrsMatrix class.
void blockCrsMatrixWriter(BlockCrsMatrix< Scalar, LO, GO, Node > const &A, std::string const &fileName)
Helper function to write a BlockCrsMatrix. Calls the 3-argument version.
Declaration of Tpetra::Experimental::BlockCrsMatrix.
Teuchos::RCP< const Tpetra::Map< LO, GO, Node > > createMeshMap(LO const &blockSize, const Tpetra::Map< LO, GO, Node > &pointMap)
Helper function to generate a mesh map from a point map. Important! It's assumed that point GIDs asso...