|
Xpetra
Version of the Day
|
#include <Xpetra_EpetraCrsGraph.hpp>
Private Types | |
| typedef int | LocalOrdinal |
| typedef long long | GlobalOrdinal |
| typedef EpetraNode | Node |
| typedef Map< LocalOrdinal, GlobalOrdinal, Node > | map_type |
| The specialization of Map used by this class. More... | |
Xpetra specific | |
| RCP< Epetra_CrsGraph > | graph_ |
| EpetraCrsGraphT (const Teuchos::RCP< Epetra_CrsGraph > &graph) | |
| EpetraCrsGraphT constructor to wrap a Epetra_CrsGraph object. More... | |
| RCP< const Epetra_CrsGraph > | getEpetra_CrsGraph () const |
| Get the underlying Epetra graph. More... | |
Constructor/Destructor Methods | |
| EpetraCrsGraphT (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap) | |
| Constructor for empty DynamicProfile graph (no space is preallocated). More... | |
| EpetraCrsGraphT (const RCP< const map_type > &rowMap, size_t maxNumEntriesPerRow, const RCP< Teuchos::ParameterList > &=Teuchos::null) | |
| Constructor specifying fixed number of entries for each row. More... | |
| EpetraCrsGraphT (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, size_t maxNumEntriesPerRow, const Teuchos::RCP< Teuchos::ParameterList > &=null) | |
| Constructor specifying column Map and fixed number of entries for each row. More... | |
| EpetraCrsGraphT (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, const RCP< ParameterList > &=null) | |
| virtual | ~EpetraCrsGraphT () |
| 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... | |
| void | allocateAllIndices (size_t numNonZeros, ArrayRCP< size_t > &rowptr, ArrayRCP< LocalOrdinal > &colind) |
| Allocates and returns ArrayRCPs of the Crs arrays — This is an Xpetra-only routine. More... | |
| void | setAllIndices (const ArrayRCP< size_t > &rowptr, const ArrayRCP< LocalOrdinal > &colind) |
| Sets the 1D pointer arrays of the graph. More... | |
| void | getAllIndices (ArrayRCP< const size_t > &rowptr, ArrayRCP< const LocalOrdinal > &colind) const |
| Gets the 1D pointer arrays of the graph. 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... | |
| void | expertStaticFillComplete (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &domainMap, const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rangeMap, const Teuchos::RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > &importer=Teuchos::null, const Teuchos::RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > &exporter=Teuchos::null, const Teuchos::RCP< Teuchos::ParameterList > ¶ms=Teuchos::null) |
| Expert version of fillComplete. 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... | |
| 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 | 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... | |
| void | computeGlobalConstants () |
| Force the computation of global constants if we don't have them. More... | |
Additional Inherited Members | |
Public Types inherited from Xpetra::CrsGraph< int, long long, EpetraNode > | |
| typedef int | local_ordinal_type |
| typedef long long | global_ordinal_type |
| typedef EpetraNode | node_type |
Public Member Functions inherited from Xpetra::CrsGraph< int, long long, EpetraNode > | |
| virtual | ~CrsGraph () |
| Destructor. More... | |
| virtual void | expertStaticFillComplete (const RCP< const Map< int, long long, EpetraNode > > &domainMap, const RCP< const Map< int, long long, EpetraNode > > &rangeMap, const RCP< const Import< int, long long, EpetraNode > > &importer=null, const RCP< const Export< int, long long, EpetraNode > > &exporter=null, const RCP< Teuchos::ParameterList > ¶ms=null)=0 |
| Expert version of fillComplete. More... | |
Public Member Functions inherited from Xpetra::DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > | |
| virtual | ~DistObject () |
| Destructor. More... | |
| virtual void | doImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)=0 |
| Import data into this object using an Import object ("forward mode"). More... | |
| virtual void | beginImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM) |
| Import data into this object using an Import object ("forward mode"). More... | |
| virtual void | endImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM) |
| Import data into this object using an Import object ("forward mode"). More... | |
| virtual void | doExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)=0 |
| Export data into this object using an Export object ("forward mode"). More... | |
| virtual void | beginExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM) |
| Export data into this object using an Export object ("forward mode"). More... | |
| virtual void | endExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM) |
| Export data into this object using an Export object ("forward mode"). More... | |
| virtual void | doImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)=0 |
| Import data into this object using an Export object ("reverse mode"). More... | |
| virtual void | beginImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM) |
| Import data into this object using an Export object ("reverse mode"). More... | |
| virtual void | endImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM) |
| Import data into this object using an Export object ("reverse mode"). More... | |
| virtual void | doExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)=0 |
| Export data into this object using an Import object ("reverse mode"). More... | |
| virtual void | beginExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM) |
| Export data into this object using an Import object ("reverse mode"). More... | |
| virtual void | endExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM) |
| Export data into this object using an Import object ("reverse mode"). More... | |
Public Member Functions inherited from Teuchos::Describable | |
| void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
| virtual | ~Describable () |
| DescribableStreamManipulatorState | describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default) |
| std::ostream & | operator<< (std::ostream &os, const DescribableStreamManipulatorState &d) |
| void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
| virtual | ~Describable () |
Public Member Functions inherited from Teuchos::LabeledObject | |
| LabeledObject () | |
| virtual | ~LabeledObject () |
| virtual void | setObjectLabel (const std::string &objectLabel) |
| virtual std::string | getObjectLabel () const |
Static Public Attributes inherited from Teuchos::Describable | |
| static const EVerbosityLevel | verbLevel_default |
Definition at line 879 of file Xpetra_EpetraCrsGraph.hpp.
|
private |
Definition at line 882 of file Xpetra_EpetraCrsGraph.hpp.
|
private |
Definition at line 883 of file Xpetra_EpetraCrsGraph.hpp.
|
private |
Definition at line 884 of file Xpetra_EpetraCrsGraph.hpp.
|
private |
The specialization of Map used by this class.
Definition at line 887 of file Xpetra_EpetraCrsGraph.hpp.
|
inline |
Constructor for empty DynamicProfile graph (no space is preallocated).
Definition at line 903 of file Xpetra_EpetraCrsGraph.hpp.
|
inline |
Constructor specifying fixed number of entries for each row.
Definition at line 907 of file Xpetra_EpetraCrsGraph.hpp.
|
inline |
Constructor specifying column Map and fixed number of entries for each row.
Definition at line 916 of file Xpetra_EpetraCrsGraph.hpp.
|
inline |
Definition at line 921 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Destructor.
Definition at line 961 of file Xpetra_EpetraCrsGraph.hpp.
|
inline |
EpetraCrsGraphT constructor to wrap a Epetra_CrsGraph object.
Definition at line 1318 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Insert global indices into the graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 969 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Insert local indices into the graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 977 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Remove all graph indices from the specified local row.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 985 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Allocates and returns ArrayRCPs of the Crs arrays — This is an Xpetra-only routine.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 989 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Sets the 1D pointer arrays of the graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1010 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Gets the 1D pointer arrays of the graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1033 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Signal that data entry is complete, specifying domain and range maps.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1061 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Signal that data entry is complete.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1071 of file Xpetra_EpetraCrsGraph.hpp.
|
inline |
Expert version of fillComplete.
Definition at line 1082 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the communicator.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1101 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the Map that describes the row distribution in this graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1107 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the Map that describes the column distribution in this graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1110 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the Map associated with the domain of this graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1113 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the Map associated with the domain of this graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1116 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the importer associated with this graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1119 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the exporter associated with this graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1122 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of global rows in the graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1125 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of global columns in the graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1128 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of graph rows owned on the calling node.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1131 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of columns connected to the locally owned rows of this graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1134 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the index base for global indices for this graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1137 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the global number of entries in the graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1140 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the local number of entries in the graph.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1143 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the current number of entries on this node in the specified global row.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1146 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the current number of entries on this node in the specified local row.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1149 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the current number of allocated entries for this node in the specified global row .
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1152 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the current number of allocated entries on this node in the specified local row.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1155 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Maximum number of entries in all rows over all processes.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1158 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Maximum number of entries in all rows owned by the calling process.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1161 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Whether the graph has a column Map.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1164 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Whether column indices are stored using local indices on the calling process.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1167 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Whether column indices are stored using global indices on the calling process.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1170 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Whether fillComplete() has been called and the graph is in compute mode.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1173 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns true if storage has been optimized.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1176 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Return a const, nonpersisting view of global indices in the given row.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1179 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Return a const, nonpersisting view of local indices in the given row.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1192 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Force the computation of global constants if we don't have them.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1230 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Return a simple one-line description of this object.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1239 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Print the object with some verbosity level to an FancyOStream object.
Implements Xpetra::CrsGraph< int, long long, EpetraNode >.
Definition at line 1242 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Implements DistObject interface.
Access function for the Tpetra::Map this DistObject was constructed with.
Implements Xpetra::DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node >.
Definition at line 1258 of file Xpetra_EpetraCrsGraph.hpp.
|
inline |
Definition at line 1261 of file Xpetra_EpetraCrsGraph.hpp.
|
inline |
Definition at line 1274 of file Xpetra_EpetraCrsGraph.hpp.
|
inline |
Import (using an Exporter).
Definition at line 1287 of file Xpetra_EpetraCrsGraph.hpp.
|
inline |
Export (using an Importer).
Definition at line 1301 of file Xpetra_EpetraCrsGraph.hpp.
|
inline |
Get the underlying Epetra graph.
Definition at line 1323 of file Xpetra_EpetraCrsGraph.hpp.
|
private |
Definition at line 1329 of file Xpetra_EpetraCrsGraph.hpp.