42 #ifndef TPETRA_BLOCKCRSGRAPH_DECL_HPP 43 #define TPETRA_BLOCKCRSGRAPH_DECL_HPP 45 #include "Tpetra_CrsGraph.hpp" 46 #include "Tpetra_BlockMap.hpp" 64 template <
class LocalOrdinal,
class GlobalOrdinal = LocalOrdinal,
class Node = Kokkos::DefaultNode::DefaultNodeType>
67 typedef LocalOrdinal local_ordinal_type;
68 typedef GlobalOrdinal global_ordinal_type;
69 typedef Node node_type;
Block-entry counterpart to Tpetra::Map.
size_t getNodeNumBlockRows() const
Returns the number of block rows owned on the calling node.
Namespace Tpetra contains the class and methods constituting the Tpetra library.
size_t getGlobalBlockRowLength(GlobalOrdinal row) const
Returns the number of block-columns in the specified global block row.
~BlockCrsGraph()
BlockCrsGraph destructor.
size_t getNodeNumBlockDiags() const
Returns the number of diagonal entries on the calling node.
Block-entry counterpart to Tpetra::CrsGraph.
size_t getNodeNumBlockEntries() const
Returns the local number of entries in the graph.
void getGlobalBlockRowView(GlobalOrdinal row, Teuchos::ArrayView< const GlobalOrdinal > &blockCols) const
Returns a read-only view of the block-column-indices for the specified global block row...
void fillComplete(const Teuchos::RCP< const BlockMap< LocalOrdinal, GlobalOrdinal, Node > > &blkDomainMap, const Teuchos::RCP< const BlockMap< LocalOrdinal, GlobalOrdinal, Node > > &blkRangeMap, OptimizeOption os=DoOptimizeStorage)
Signal that data entry is complete, specifying domain and range maps. Off-node entries are distribute...
bool isUpperTriangular() const
true if graph is upper-triangular.
const Teuchos::RCP< const BlockMap< LocalOrdinal, GlobalOrdinal, Node > > & getBlockColMap() const
Returns the block-column map.
size_t getGlobalNumBlockRows() const
Returns the global number of block rows.
void insertGlobalIndices(GlobalOrdinal row, const Teuchos::ArrayView< const GlobalOrdinal > &indices)
Submit graph indices, using global IDs.
Teuchos::ArrayRCP< const size_t > getNodeRowOffsets() const
Get row-offsets. (This is the bptr array in VBR terminology.)
const Teuchos::RCP< const BlockMap< LocalOrdinal, GlobalOrdinal, Node > > & getBlockRowMap() const
Returns the block-row map.
const Teuchos::RCP< const BlockMap< LocalOrdinal, GlobalOrdinal, Node > > & getBlockDomainMap() const
Returns the block-domain map.
bool isLocallyIndexed() const
If graph indices are in the local range, this function returns true. Otherwise, this function returns...
Teuchos::ArrayRCP< const LocalOrdinal > getNodePackedIndices() const
Get packed-col-indices. (This is the bindx array in VBR terminology.)
BlockCrsGraph(const Teuchos::RCP< const BlockMap< LocalOrdinal, GlobalOrdinal, Node > > &blkRowMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile)
BlockCrsGraph constructor specifying a block-row-map and max-num-block-entries-per-row.
void optimizeStorage()
Re-allocate the data into contiguous storage.
bool isFillComplete() const
Returns true if fillComplete() has been called.
bool isLowerTriangular() const
true if graph is lower-triangular.
void globalAssemble()
Communicate non-local contributions to other nodes.
const Teuchos::RCP< const BlockMap< LocalOrdinal, GlobalOrdinal, Node > > & getBlockRangeMap() const
Returns the block-range map.
void getLocalBlockRowView(LocalOrdinal row, Teuchos::ArrayView< const LocalOrdinal > &blockCols) const
Returns a read-only view of the block-column-indices for the specified local block row...