42 #ifndef TPETRA_ROWGRAPH_HPP 43 #define TPETRA_ROWGRAPH_HPP 45 #include <Teuchos_Describable.hpp> 46 #include <Kokkos_DefaultNode.hpp> 48 #include "Tpetra_ConfigDefs.hpp" 49 #include "Tpetra_Map.hpp" 50 #include "Tpetra_Import.hpp" 51 #include "Tpetra_Export.hpp" 63 template <
class LocalOrdinal =
int,
class GlobalOrdinal = LocalOrdinal,
class Node = Kokkos::DefaultNode::DefaultNodeType>
66 typedef LocalOrdinal local_ordinal_type;
67 typedef GlobalOrdinal global_ordinal_type;
68 typedef Node node_type;
181 size_t &NumIndices)
const = 0;
195 size_t &NumIndices)
const = 0;
201 template <
class LocalOrdinal,
class GlobalOrdinal,
class Node>
Namespace Tpetra contains the class and methods constituting the Tpetra library.
virtual bool isFillComplete() const =0
Returns true if fillComplete() has been called.
A pure virtual interface for row-partitioned graphs.
virtual Teuchos::RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > getExporter() const =0
Returns the exporter associated with this graph.
virtual global_size_t getGlobalNumRows() const =0
Returns the number of global rows in the graph.
virtual global_size_t getGlobalNumEntries() const =0
Returns the global number of entries in the graph.
virtual bool hasColMap() const =0
Indicates whether the graph has a well-defined column map.
virtual size_t getGlobalMaxNumRowEntries() const =0
Returns the maximum number of entries across all rows/columns on all nodes.
virtual bool isLowerTriangular() const =0
Indicates whether the graph is lower triangular.
size_t global_size_t
Global size_t object.
virtual size_t getNodeNumDiags() const =0
Returns the number of local diagonal entries, based on global row/column index comparisons.
virtual bool isGloballyIndexed() const =0
If graph indices are in the global range, this function returns true. Otherwise, this function return...
virtual bool isUpperTriangular() const =0
Indicates whether the graph is upper triangular.
virtual bool isLocallyIndexed() const =0
If graph indices are in the local range, this function returns true. Otherwise, this function returns...
virtual size_t getNodeNumCols() const =0
Returns the number of columns connected to the locally owned rows of this graph.
virtual size_t getNodeMaxNumRowEntries() const =0
Returns the maximum number of entries across all rows/columns on this node.
virtual ~RowGraph()
Destructor.
virtual const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & getColMap() const =0
Returns the Map that describes the column distribution in this graph.
virtual const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & getRowMap() const =0
Returns the Map that describes the row distribution in this graph.
virtual GlobalOrdinal getIndexBase() const =0
Returns the index base for global indices for this graph.
virtual size_t getNumEntriesInLocalRow(LocalOrdinal localRow) const =0
Returns the current number of entries on this node in the specified local row.
virtual Teuchos::RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > getImporter() const =0
Returns the importer associated with this graph.
virtual Teuchos::RCP< Node > getNode() const =0
Returns the underlying node.
virtual const Teuchos::RCP< const Teuchos::Comm< int > > & getComm() const =0
Returns the communicator.
virtual void getLocalRowCopy(LocalOrdinal LocalRow, const Teuchos::ArrayView< LocalOrdinal > &Indices, size_t &NumIndices) const =0
Extract a list of entries in a specified local row of the graph. Put into storage allocated by callin...
virtual const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & getRangeMap() const =0
Returns the Map associated with the domain of this graph.
virtual void getGlobalRowCopy(GlobalOrdinal GlobalRow, const Teuchos::ArrayView< GlobalOrdinal > &Indices, size_t &NumIndices) const =0
Extract a list of entries in a specified global row of the graph. Put into pre-allocated storage...
virtual global_size_t getGlobalNumCols() const =0
Returns the number of global columns in the graph.
virtual size_t getNodeNumEntries() const =0
Returns the local number of entries in the graph.
virtual size_t getNodeNumRows() const =0
Returns the number of rows owned on the calling node.
virtual const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & getDomainMap() const =0
Returns the Map associated with the domain of this graph.
virtual global_size_t getGlobalNumDiags() const =0
Returns the number of global diagonal entries, based on global row/column index comparisons.
virtual size_t getNumEntriesInGlobalRow(GlobalOrdinal globalRow) const =0
Returns the current number of entries on this node in the specified global row.