42 #ifndef TPETRA_EXPERIMENTAL_BLOCKCRSMATRIX_HELPERS_DECL_HPP
43 #define TPETRA_EXPERIMENTAL_BLOCKCRSMATRIX_HELPERS_DECL_HPP
50 #include "Teuchos_RCP.hpp"
54 #ifndef DOXYGEN_SHOULD_SKIP_THIS
58 #endif // DOXYGEN_SHOULD_SKIP_THIS
61 namespace Experimental {
64 template<
class Scalar,
class LO,
class GO,
class Node>
65 void blockCrsMatrixWriter(BlockCrsMatrix<Scalar,LO,GO,Node>
const &A, std::string
const &fileName);
68 template<
class Scalar,
class LO,
class GO,
class Node>
69 void blockCrsMatrixWriter(BlockCrsMatrix<Scalar,LO,GO,Node>
const &A, std::string
const &fileName, Teuchos::ParameterList
const ¶ms);
72 template<
class Scalar,
class LO,
class GO,
class Node>
84 template<
class Scalar,
class LO,
class GO,
class Node>
85 void blockCrsMatrixWriter(BlockCrsMatrix<Scalar,LO,GO,Node>
const &A, std::ostream &os, Teuchos::ParameterList
const ¶ms);
91 template<
class Scalar,
class LO,
class GO,
class Node>
92 void writeMatrixStrip(BlockCrsMatrix<Scalar,LO,GO,Node>
const &A, std::ostream &os, Teuchos::ParameterList
const ¶ms);
101 template<
class Scalar,
class LO,
class GO,
class Node>
102 Teuchos::RCP<BlockCrsMatrix<Scalar, LO, GO, Node>>
107 template<
class LO,
class GO,
class Node>
108 Teuchos::RCP<const Tpetra::Map<LO,GO,Node>>
114 #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.
Forward declaration of Tpetra::Experimental::BlockCrsMatrix.
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.
void blockCrsMatrixWriter(BlockCrsMatrix< Scalar, LO, GO, Node > const &A, std::string const &fileName)
Helper function to write a BlockCrsMatrix. Calls the 3-argument version.
Forward declaration of Tpetra::CrsMatrix.
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...
Forward declaration of Tpetra::Map.