10 #ifndef XPETRA_ROWGRAPH_HPP
11 #define XPETRA_ROWGRAPH_HPP
15 #include <Teuchos_Describable.hpp>
16 #include <Tpetra_KokkosCompat_DefaultNode.hpp>
18 #include "Xpetra_Map.hpp"
24 template <
class LocalOrdinal,
26 class Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
28 :
virtual public Teuchos::Describable {
46 virtual const Teuchos::RCP<const Teuchos::Comm<int> >
getComm()
const = 0;
49 virtual const Teuchos::RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> >
getRowMap()
const = 0;
52 virtual const Teuchos::RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> >
getColMap()
const = 0;
55 virtual const Teuchos::RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> >
getDomainMap()
const = 0;
58 virtual const Teuchos::RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> >
getRangeMap()
const = 0;
61 virtual Teuchos::RCP<const Import<LocalOrdinal, GlobalOrdinal, Node> >
getImporter()
const = 0;
64 virtual Teuchos::RCP<const Export<LocalOrdinal, GlobalOrdinal, Node> >
getExporter()
const = 0;
117 virtual void getGlobalRowCopy(GlobalOrdinal GlobalRow,
const Teuchos::ArrayView<GlobalOrdinal> &Indices,
size_t &NumIndices)
const = 0;
120 virtual void getLocalRowCopy(LocalOrdinal LocalRow,
const Teuchos::ArrayView<LocalOrdinal> &Indices,
size_t &NumIndices)
const = 0;
128 #define XPETRA_ROWGRAPH_SHORT
129 #endif // XPETRA_ROWGRAPH_HPP
virtual const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRangeMap() const =0
Returns the Map associated with the domain of this graph.
virtual bool isLocallyIndexed() const =0
If graph indices are in the local range, this function returns true. Otherwise, this function returns...
virtual const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getDomainMap() const =0
Returns the Map associated with the domain of this graph.
virtual const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getColMap() const =0
Returns the Map that describes the column distribution in this graph.
virtual GlobalOrdinal getIndexBase() const =0
Returns the index base for global indices for this graph.
virtual size_t getLocalNumCols() const =0
Returns the number of columns connected to the locally owned rows of this graph.
virtual size_t getLocalNumRows() const =0
Returns the number of rows owned on the calling node.
virtual Teuchos::RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > getExporter() const =0
Returns the exporter associated with 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...
LocalOrdinal local_ordinal_type
virtual Teuchos::RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > getImporter() const =0
Returns the importer associated with this graph.
virtual const Teuchos::RCP< const Teuchos::Comm< int > > getComm() const =0
Returns the communicator.
virtual global_size_t getGlobalNumRows() const =0
Returns the number of global rows in the graph.
virtual const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRowMap() const =0
Returns the Map that describes the row distribution in this graph.
size_t global_size_t
Global size_t object.
virtual size_t getNumEntriesInLocalRow(LocalOrdinal localRow) const =0
Returns the current number of entries on this node in the specified local row.
virtual size_t getNumEntriesInGlobalRow(GlobalOrdinal globalRow) const =0
Returns the current number of entries on this node in the specified global row.
virtual bool isFillComplete() const =0
Returns true if fillComplete() has been called.
virtual size_t getLocalMaxNumRowEntries() const =0
Returns the maximum number of entries across all rows/columns on this node.
virtual size_t getNodeNumEntries() const =0
Returns the local number of entries in the graph.
GlobalOrdinal global_ordinal_type
virtual size_t getGlobalMaxNumRowEntries() const =0
Returns the maximum number of entries across all rows/columns on all nodes.
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 global_size_t getGlobalNumEntries() const =0
Returns the global number of entries in the graph.
virtual bool isGloballyIndexed() const =0
If graph indices are in the global range, this function returns true. Otherwise, this function return...
virtual global_size_t getGlobalNumCols() const =0
Returns the number of global columns in the graph.
virtual ~RowGraph()
Destructor.
virtual bool hasColMap() const =0
Indicates whether the graph has a well-defined column map.