42 #ifndef TPETRA_ROWGRAPH_DECL_HPP
43 #define TPETRA_ROWGRAPH_DECL_HPP
46 #include "Tpetra_Map.hpp"
47 #include "Tpetra_Import.hpp"
48 #include "Tpetra_Export.hpp"
50 #include "Teuchos_Describable.hpp"
66 template <
class LocalOrdinal,
70 virtual public Teuchos::Describable,
71 public Packable<GlobalOrdinal, LocalOrdinal> {
90 virtual Teuchos::RCP<const Teuchos::Comm<int> >
93 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
94 virtual TPETRA_DEPRECATED Teuchos::RCP<Node> getNode ()
const = 0;
96 #endif // TPETRA_ENABLE_DEPRECATED_CODE
99 virtual Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Node> >
103 virtual Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Node> >
107 virtual Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Node> >
111 virtual Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Node> >
115 virtual Teuchos::RCP<const Import<LocalOrdinal,GlobalOrdinal,Node> >
119 virtual Teuchos::RCP<const Export<LocalOrdinal,GlobalOrdinal,Node> >
169 #ifdef TPETRA_ENABLE_DEPRECATED_CODE
181 virtual size_t TPETRA_DEPRECATED getNodeNumDiags ()
const = 0;
193 virtual bool TPETRA_DEPRECATED isLowerTriangular ()
const = 0;
205 virtual bool TPETRA_DEPRECATED isUpperTriangular ()
const = 0;
206 #endif // TPETRA_ENABLE_DEPRECATED_CODE
229 const Teuchos::ArrayView<GlobalOrdinal>& gblColInds,
230 size_t& numColInds)
const = 0;
250 const Teuchos::ArrayView<LocalOrdinal>& lclColInds,
251 size_t& numColInds)
const = 0;
292 Teuchos::ArrayView<const LocalOrdinal>& lclColInds)
const;
311 Teuchos::ArrayView<const GlobalOrdinal>& gblColInds)
const;
319 pack (
const Teuchos::ArrayView<const LocalOrdinal>& exportLIDs,
320 Teuchos::Array<GlobalOrdinal>& exports,
321 const Teuchos::ArrayView<size_t>& numPacketsPerLID,
322 size_t& constantNumPackets,
328 #endif // TPETRA_ROWGRAPH_DECL_HPP
virtual bool hasColMap() const =0
Whether the graph has a well-defined column Map.
virtual ~RowGraph()
Destructor (virtual for memory safety of derived classes).
virtual size_t getNumEntriesInLocalRow(LocalOrdinal localRow) const =0
Returns the current number of entries on this node in the specified local row.
An abstract interface for graphs accessed by rows.
virtual void getGlobalRowView(const GlobalOrdinal gblRow, Teuchos::ArrayView< const GlobalOrdinal > &gblColInds) const
Get a const, non-persisting view of the given global row's global column indices, as a Teuchos::Array...
virtual GlobalOrdinal getIndexBase() const =0
Returns the index base for global indices for this graph.
virtual void getGlobalRowCopy(GlobalOrdinal gblRow, const Teuchos::ArrayView< GlobalOrdinal > &gblColInds, size_t &numColInds) const =0
Get a copy of the global column indices in a given row of the graph.
virtual size_t getNodeNumCols() const =0
Returns the number of columns connected to the locally owned rows of this graph.
GlobalOrdinal global_ordinal_type
The type of global indices in the graph.
virtual size_t getNodeNumEntries() const =0
Returns the local number of entries in the graph.
virtual void getLocalRowCopy(LocalOrdinal lclRow, const Teuchos::ArrayView< LocalOrdinal > &lclColInds, size_t &numColInds) const =0
Get a copy of the local column indices in a given row of the graph.
virtual Teuchos::RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > getImporter() const =0
This graph's Import object.
virtual size_t getNodeNumRows() const =0
Returns the number of rows owned on the calling node.
virtual size_t getNodeMaxNumRowEntries() const =0
Returns the maximum number of entries across all rows/columns on this node.
virtual Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getColMap() const =0
The Map that describes this graph's distribution of columns over processes.
virtual Teuchos::RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > getExporter() const =0
This graph's Export object.
virtual bool supportsRowViews() const
Whether this class implements getLocalRowView() and getGlobalRowView().
Forward declaration of Tpetra::RowGraph.
virtual bool isFillComplete() const =0
Whether fillComplete() has been called (without an intervening resumeFill()).
size_t global_size_t
Global size_t object.
virtual void pack(const Teuchos::ArrayView< const LocalOrdinal > &exportLIDs, Teuchos::Array< GlobalOrdinal > &exports, const Teuchos::ArrayView< size_t > &numPacketsPerLID, size_t &constantNumPackets, Distributor &distor) const
Pack this object's data for Import or Export.
virtual Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRangeMap() const =0
The Map associated with the range of this graph.
virtual global_size_t getGlobalNumRows() const =0
Returns the number of global rows in the graph.
virtual size_t getGlobalMaxNumRowEntries() const =0
Returns the maximum number of entries across all rows/columns on all nodes.
virtual global_size_t getGlobalNumCols() const =0
Returns the number of global columns in the graph.
virtual Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRowMap() const =0
The Map that describes this graph's distribution of rows over processes.
Sets up and executes a communication plan for a Tpetra DistObject.
CrsGraphType::global_ordinal_type getGlobalNumDiags(const CrsGraphType &G)
Number of populated diagonal entries in the given sparse graph, over all processes in the graph's (MP...
virtual size_t getNumEntriesInGlobalRow(GlobalOrdinal globalRow) const =0
Returns the current number of entries on this node in the specified global row.
virtual bool isGloballyIndexed() const =0
If graph indices are in the global range, this function returns true. Otherwise, this function return...
LocalOrdinal local_ordinal_type
The type of local indices in the graph.
virtual void getLocalRowView(const LocalOrdinal lclRow, Teuchos::ArrayView< const LocalOrdinal > &lclColInds) const
Get a constant, nonpersisting, locally indexed view of the given row of the graph.
virtual Teuchos::RCP< const Teuchos::Comm< int > > getComm() const =0
The communicator over which this graph is distributed.
Node node_type
The Kokkos Node type.
virtual bool isLocallyIndexed() const =0
If graph indices are in the local range, this function returns true. Otherwise, this function returns...
Declaration of Tpetra::Packable.
Abstract base class for objects that can be the source of an Import or Export operation, and that also know how to pack their data to send to the target object.
virtual global_size_t getGlobalNumEntries() const =0
Returns the global number of entries in the graph.
virtual Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getDomainMap() const =0
The Map associated with the domain of this graph.