#include <Xpetra_TpetraCrsGraph.hpp>
Public Member Functions | |
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > | getMap () const |
Implements DistObject interface. More... | |
void | doImport (const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM) |
Import. More... | |
void | doExport (const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &dest, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM) |
Export. More... | |
void | doImport (const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM) |
Import (using an Exporter). More... | |
void | doExport (const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &dest, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM) |
Export (using an Importer). More... | |
![]() | |
virtual | ~CrsGraph () |
Destructor. More... | |
![]() | |
virtual | ~DistObject () |
Destructor. More... | |
Private Types | |
typedef TpetraCrsGraph< LocalOrdinal, GlobalOrdinal, Node > | TpetraCrsGraphClass |
typedef Map< LocalOrdinal, GlobalOrdinal, Node > | map_type |
Private Attributes | |
RCP< Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > | graph_ |
Constructor/Destructor Methods | |
TpetraCrsGraph (const RCP< const map_type > &rowMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > ¶ms=null) | |
Constructor specifying fixed number of entries for each row. More... | |
TpetraCrsGraph (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const RCP< ParameterList > ¶ms=null) | |
Constructor specifying (possibly different) number of entries in each row. More... | |
TpetraCrsGraph (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const RCP< ParameterList > ¶ms=null) | |
Constructor specifying column Map and fixed number of entries for each row. More... | |
TpetraCrsGraph (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, ProfileType pftype=DynamicProfile, const RCP< ParameterList > ¶ms=null) | |
Constructor specifying column Map and number of entries in each row. More... | |
virtual | ~TpetraCrsGraph () |
Destructor. More... | |
Insertion/Removal Methods | |
void | insertGlobalIndices (GlobalOrdinal globalRow, const ArrayView< const GlobalOrdinal > &indices) |
Insert global indices into the graph. More... | |
void | insertLocalIndices (const LocalOrdinal localRow, const ArrayView< const LocalOrdinal > &indices) |
Insert local indices into the graph. More... | |
void | removeLocalIndices (LocalOrdinal localRow) |
Remove all graph indices from the specified local row. More... | |
Transformational Methods | |
void | fillComplete (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &domainMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rangeMap, const RCP< ParameterList > ¶ms=null) |
Signal that data entry is complete, specifying domain and range maps. More... | |
void | fillComplete (const RCP< ParameterList > ¶ms=null) |
Signal that data entry is complete. More... | |
Methods implementing RowGraph. | |
RCP< const Comm< int > > | getComm () const |
Returns the communicator. More... | |
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > | getRowMap () const |
Returns the Map that describes the row distribution in this graph. More... | |
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > | getColMap () const |
Returns the Map that describes the column distribution in this graph. More... | |
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > | getDomainMap () const |
Returns the Map associated with the domain of this graph. More... | |
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > | getRangeMap () const |
Returns the Map associated with the domain of this graph. More... | |
RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > | getImporter () const |
Returns the importer associated with this graph. More... | |
RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > | getExporter () const |
Returns the exporter associated with this graph. More... | |
global_size_t | getGlobalNumRows () const |
Returns the number of global rows in the graph. More... | |
global_size_t | getGlobalNumCols () const |
Returns the number of global columns in the graph. More... | |
size_t | getNodeNumRows () const |
Returns the number of graph rows owned on the calling node. More... | |
size_t | getNodeNumCols () const |
Returns the number of columns connected to the locally owned rows of this graph. More... | |
GlobalOrdinal | getIndexBase () const |
Returns the index base for global indices for this graph. More... | |
global_size_t | getGlobalNumEntries () const |
Returns the global number of entries in the graph. More... | |
size_t | getNodeNumEntries () const |
Returns the local number of entries in the graph. More... | |
size_t | getNumEntriesInGlobalRow (GlobalOrdinal globalRow) const |
Returns the current number of entries on this node in the specified global row. More... | |
size_t | getNumEntriesInLocalRow (LocalOrdinal localRow) const |
Returns the current number of entries on this node in the specified local row. More... | |
size_t | getNumAllocatedEntriesInGlobalRow (GlobalOrdinal globalRow) const |
Returns the current number of allocated entries for this node in the specified global row . More... | |
size_t | getNumAllocatedEntriesInLocalRow (LocalOrdinal localRow) const |
Returns the current number of allocated entries on this node in the specified local row. More... | |
global_size_t | getGlobalNumDiags () const |
Returns the number of global diagonal entries, based on global row/column index comparisons. More... | |
size_t | getNodeNumDiags () const |
Returns the number of local diagonal entries, based on global row/column index comparisons. More... | |
size_t | getGlobalMaxNumRowEntries () const |
Maximum number of entries in all rows over all processes. More... | |
size_t | getNodeMaxNumRowEntries () const |
Maximum number of entries in all rows owned by the calling process. More... | |
bool | hasColMap () const |
Whether the graph has a column Map. More... | |
bool | isLowerTriangular () const |
Whether the graph is locally lower triangular. More... | |
bool | isUpperTriangular () const |
Whether the graph is locally upper triangular. More... | |
bool | isLocallyIndexed () const |
Whether column indices are stored using local indices on the calling process. More... | |
bool | isGloballyIndexed () const |
Whether column indices are stored using global indices on the calling process. More... | |
bool | isFillComplete () const |
Whether fillComplete() has been called and the graph is in compute mode. More... | |
bool | isStorageOptimized () const |
Returns true if storage has been optimized. More... | |
void | getGlobalRowView (GlobalOrdinal GlobalRow, ArrayView< const GlobalOrdinal > &Indices) const |
Return a const, nonpersisting view of global indices in the given row. More... | |
void | getLocalRowView (LocalOrdinal LocalRow, ArrayView< const LocalOrdinal > &indices) const |
Return a const, nonpersisting view of local indices in the given row. More... | |
Overridden from Teuchos::Describable | |
std::string | description () const |
Return a simple one-line description of this object. More... | |
void | describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const |
Print the object with some verbosity level to an FancyOStream object. More... | |
Advanced methods, at increased risk of deprecation. | |
ArrayRCP< const size_t > | getNodeRowPtrs () const |
Get an ArrayRCP of the row-offsets. More... | |
Xpetra specific | |
TpetraCrsGraph (const Teuchos::RCP< Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &graph) | |
TpetraCrsGraph constructor to wrap a Tpetra::CrsGraph object. More... | |
RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > | getTpetra_CrsGraph () const |
Get the underlying Tpetra graph. More... | |
Additional Inherited Members | |
![]() | |
typedef LocalOrdinal | local_ordinal_type |
typedef GlobalOrdinal | global_ordinal_type |
typedef Node | node_type |
Definition at line 79 of file Xpetra_TpetraCrsGraph.hpp.
|
private |
Definition at line 84 of file Xpetra_TpetraCrsGraph.hpp.
|
private |
Definition at line 85 of file Xpetra_TpetraCrsGraph.hpp.
|
inline |
Constructor specifying fixed number of entries for each row.
Definition at line 93 of file Xpetra_TpetraCrsGraph.hpp.
|
inline |
Constructor specifying (possibly different) number of entries in each row.
Definition at line 97 of file Xpetra_TpetraCrsGraph.hpp.
|
inline |
Constructor specifying column Map and fixed number of entries for each row.
Definition at line 101 of file Xpetra_TpetraCrsGraph.hpp.
|
inline |
Constructor specifying column Map and number of entries in each row.
Definition at line 105 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Destructor.
Definition at line 109 of file Xpetra_TpetraCrsGraph.hpp.
|
inline |
TpetraCrsGraph constructor to wrap a Tpetra::CrsGraph object.
Definition at line 314 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Insert global indices into the graph.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 117 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Insert local indices into the graph.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 120 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Remove all graph indices from the specified local row.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 123 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Signal that data entry is complete, specifying domain and range maps.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 131 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Signal that data entry is complete.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 134 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the communicator.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 142 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the Map that describes the row distribution in this graph.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 145 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the Map that describes the column distribution in this graph.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 148 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the Map associated with the domain of this graph.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 151 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the Map associated with the domain of this graph.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 154 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the importer associated with this graph.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 157 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the exporter associated with this graph.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 160 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of global rows in the graph.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 163 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of global columns in the graph.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 166 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of graph rows owned on the calling node.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 169 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of columns connected to the locally owned rows of this graph.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 172 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the index base for global indices for this graph.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 175 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the global number of entries in the graph.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 178 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the local number of entries in the graph.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 181 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the current number of entries on this node in the specified global row.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 184 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the current number of entries on this node in the specified local row.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 187 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the current number of allocated entries for this node in the specified global row .
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 190 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the current number of allocated entries on this node in the specified local row.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 193 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of global diagonal entries, based on global row/column index comparisons.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 196 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of local diagonal entries, based on global row/column index comparisons.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 199 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Maximum number of entries in all rows over all processes.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 202 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Maximum number of entries in all rows owned by the calling process.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 205 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Whether the graph has a column Map.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 208 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Whether the graph is locally lower triangular.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 211 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Whether the graph is locally upper triangular.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 214 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Whether column indices are stored using local indices on the calling process.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 217 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Whether column indices are stored using global indices on the calling process.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 220 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Whether fillComplete() has been called and the graph is in compute mode.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 223 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Returns true if storage has been optimized.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 226 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Return a const, nonpersisting view of global indices in the given row.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 229 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Return a const, nonpersisting view of local indices in the given row.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 232 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Return a simple one-line description of this object.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 240 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Print the object with some verbosity level to an FancyOStream object.
Implements Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 243 of file Xpetra_TpetraCrsGraph.hpp.
|
inline |
Get an ArrayRCP of the row-offsets.
Definition at line 251 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Implements DistObject interface.
Access function for the Tpetra::Map this DistObject was constructed with.
Implements Xpetra::DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 259 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Implements Xpetra::DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 262 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Implements Xpetra::DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 274 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Import (using an Exporter).
Implements Xpetra::DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 285 of file Xpetra_TpetraCrsGraph.hpp.
|
inlinevirtual |
Export (using an Importer).
Implements Xpetra::DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 297 of file Xpetra_TpetraCrsGraph.hpp.
|
inline |
Get the underlying Tpetra graph.
Definition at line 317 of file Xpetra_TpetraCrsGraph.hpp.
|
private |
Definition at line 322 of file Xpetra_TpetraCrsGraph.hpp.