#include <Xpetra_EpetraCrsGraph.hpp>
Public Member Functions | |
| const 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... | |
Public Member Functions inherited from Xpetra::CrsGraph< int, int > | |
| virtual | ~CrsGraph () |
| Destructor. 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 | 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 | 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 | 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... | |
Public Member Functions inherited from Teuchos::Describable | |
| void | describe (std::ostream &out, const EVerbosityLevel verbLevel=verbLevel_default) const |
| virtual | ~Describable () |
| LabeledObject () | |
| virtual | ~LabeledObject () |
| virtual void | setObjectLabel (const std::string &objectLabel) |
| virtual std::string | getObjectLabel () const |
| DescribableStreamManipulatorState | describe (const Describable &describable, const EVerbosityLevel verbLevel=Describable::verbLevel_default) |
| std::ostream & | operator<< (std::ostream &os, const DescribableStreamManipulatorState &d) |
Private Types | |
| typedef int | LocalOrdinal |
| typedef int | GlobalOrdinal |
| typedef Kokkos::DefaultNode::DefaultNodeType | Node |
| typedef Map< LocalOrdinal, GlobalOrdinal, Node > | map_type |
| The specialization of Map used by this class. More... | |
Private Attributes | |
| RCP< Epetra_CrsGraph > | graph_ |
Constructor/Destructor Methods | |
| EpetraCrsGraph (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... | |
| EpetraCrsGraph (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... | |
| EpetraCrsGraph (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... | |
| EpetraCrsGraph (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 | ~EpetraCrsGraph () |
| Destructor. More... | |
Insertion/Removal Methods | |
| void | insertGlobalIndices (GlobalOrdinal globalRow, const ArrayView< const GlobalOrdinal > &indices) |
| Insert graph indices, using global IDs. More... | |
| void | insertLocalIndices (LocalOrdinal localRow, const ArrayView< const LocalOrdinal > &indices) |
| Insert graph indices, using local IDs. 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. | |
| const RCP< const Comm< int > > | getComm () const |
| Returns the communicator. More... | |
| const RCP< const Map < LocalOrdinal, GlobalOrdinal, Node > > | getRowMap () const |
| Returns the Map that describes the row distribution in this graph. More... | |
| const RCP< const Map < LocalOrdinal, GlobalOrdinal, Node > > | getColMap () const |
| Returns the Map that describes the column distribution in this graph. More... | |
| const RCP< const Map < LocalOrdinal, GlobalOrdinal, Node > > | getDomainMap () const |
| Returns the Map associated with the domain of this graph. More... | |
| const 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... | |
| 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 |
| Returns the maximum number of entries across all rows/columns on all nodes. More... | |
| size_t | getNodeMaxNumRowEntries () const |
| Returns the maximum number of entries across all rows/columns on this node. More... | |
| bool | hasColMap () const |
| Indicates whether the graph has a well-defined column map. More... | |
| bool | isLowerTriangular () const |
| Indicates whether the graph is lower triangular. More... | |
| bool | isUpperTriangular () const |
| Indicates whether the graph is upper triangular. More... | |
| bool | isLocallyIndexed () const |
| If graph indices are in the local range, this function returns true. Otherwise, this function returns false. */. More... | |
| bool | isGloballyIndexed () const |
| If graph indices are in the global range, this function returns true. Otherwise, this function returns false. */. More... | |
| bool | isFillComplete () const |
| Returns true if 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 |
| Extract a const, non-persisting view of global indices in a specified row of the graph. More... | |
| void | getLocalRowView (LocalOrdinal LocalRow, ArrayView< const LocalOrdinal > &indices) const |
| Extract a const, non-persisting view of local indices in a specified row of the graph. 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... | |
Xpetra specific | |
| EpetraCrsGraph (const Teuchos::RCP< Epetra_CrsGraph > &graph) | |
| EpetraCrsGraph constructor to wrap a Epetra_CrsGraph object. More... | |
| RCP< const Epetra_CrsGraph > | getEpetra_CrsGraph () const |
| Get the underlying Epetra graph. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from Teuchos::Describable | |
| static const EVerbosityLevel | verbLevel_default |
Definition at line 74 of file Xpetra_EpetraCrsGraph.hpp.
|
private |
Definition at line 78 of file Xpetra_EpetraCrsGraph.hpp.
|
private |
Definition at line 79 of file Xpetra_EpetraCrsGraph.hpp.
|
private |
Definition at line 80 of file Xpetra_EpetraCrsGraph.hpp.
|
private |
The specialization of Map used by this class.
Definition at line 82 of file Xpetra_EpetraCrsGraph.hpp.
| Xpetra::EpetraCrsGraph::EpetraCrsGraph | ( | const RCP< const map_type > & | rowMap, |
| size_t | maxNumEntriesPerRow, | ||
| ProfileType | pftype = DynamicProfile, |
||
| const RCP< ParameterList > & | params = null |
||
| ) |
Constructor specifying fixed number of entries for each row.
| Xpetra::EpetraCrsGraph::EpetraCrsGraph | ( | const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & | rowMap, |
| const ArrayRCP< const size_t > & | NumEntriesPerRowToAlloc, | ||
| ProfileType | pftype = DynamicProfile, |
||
| const RCP< ParameterList > & | params = null |
||
| ) |
Constructor specifying (possibly different) number of entries in each row.
| Xpetra::EpetraCrsGraph::EpetraCrsGraph | ( | 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 > & | params = null |
||
| ) |
Constructor specifying column Map and fixed number of entries for each row.
Definition at line 68 of file Xpetra_EpetraCrsGraph.cpp.
| Xpetra::EpetraCrsGraph::EpetraCrsGraph | ( | 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 > & | params = null |
||
| ) |
Constructor specifying column Map and number of entries in each row.
|
inlinevirtual |
Destructor.
Definition at line 102 of file Xpetra_EpetraCrsGraph.hpp.
|
inline |
EpetraCrsGraph constructor to wrap a Epetra_CrsGraph object.
Definition at line 261 of file Xpetra_EpetraCrsGraph.hpp.
|
virtual |
Insert graph indices, using global IDs.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 75 of file Xpetra_EpetraCrsGraph.cpp.
|
virtual |
Insert graph indices, using local IDs.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 82 of file Xpetra_EpetraCrsGraph.cpp.
|
inlinevirtual |
Remove all graph indices from the specified local row.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 116 of file Xpetra_EpetraCrsGraph.hpp.
|
virtual |
Signal that data entry is complete, specifying domain and range maps.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 113 of file Xpetra_EpetraCrsGraph.cpp.
|
virtual |
Signal that data entry is complete.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 122 of file Xpetra_EpetraCrsGraph.cpp.
Returns the communicator.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 135 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the Map that describes the row distribution in this graph.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 138 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the Map that describes the column distribution in this graph.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 141 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the Map associated with the domain of this graph.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 144 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the Map associated with the domain of this graph.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 147 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the importer associated with this graph.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 150 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of global rows in the graph.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 153 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of global columns in the graph.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 156 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of graph rows owned on the calling node.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 159 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of columns connected to the locally owned rows of this graph.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 162 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the index base for global indices for this graph.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 165 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the global number of entries in the graph.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 168 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the local number of entries in the graph.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 171 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the current number of entries on this node in the specified global row.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 174 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the current number of entries on this node in the specified local row.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 177 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, int >.
Definition at line 180 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, int >.
Definition at line 183 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of global diagonal entries, based on global row/column index comparisons.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 186 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the number of local diagonal entries, based on global row/column index comparisons.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 189 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the maximum number of entries across all rows/columns on all nodes.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 192 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns the maximum number of entries across all rows/columns on this node.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 195 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Indicates whether the graph has a well-defined column map.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 198 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Indicates whether the graph is lower triangular.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 201 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Indicates whether the graph is upper triangular.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 204 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
If graph indices are in the local range, this function returns true. Otherwise, this function returns false. */.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 207 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
If graph indices are in the global range, this function returns true. Otherwise, this function returns false. */.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 210 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns true if fillComplete() has been called and the graph is in compute mode.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 213 of file Xpetra_EpetraCrsGraph.hpp.
|
inlinevirtual |
Returns true if storage has been optimized.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 216 of file Xpetra_EpetraCrsGraph.hpp.
|
virtual |
Extract a const, non-persisting view of global indices in a specified row of the graph.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 89 of file Xpetra_EpetraCrsGraph.cpp.
|
virtual |
Extract a const, non-persisting view of local indices in a specified row of the graph.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 101 of file Xpetra_EpetraCrsGraph.cpp.
|
virtual |
Return a simple one-line description of this object.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 131 of file Xpetra_EpetraCrsGraph.cpp.
|
virtual |
Print the object with some verbosity level to an FancyOStream object.
Implements Xpetra::CrsGraph< int, int >.
Definition at line 133 of file Xpetra_EpetraCrsGraph.cpp.
|
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 241 of file Xpetra_EpetraCrsGraph.hpp.
| void Xpetra::EpetraCrsGraph::doImport | ( | const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > & | source, |
| const Import< LocalOrdinal, GlobalOrdinal, Node > & | importer, | ||
| CombineMode | CM | ||
| ) |
| void Xpetra::EpetraCrsGraph::doExport | ( | const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > & | dest, |
| const Import< LocalOrdinal, GlobalOrdinal, Node > & | importer, | ||
| CombineMode | CM | ||
| ) |
| void Xpetra::EpetraCrsGraph::doImport | ( | const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > & | source, |
| const Export< LocalOrdinal, GlobalOrdinal, Node > & | exporter, | ||
| CombineMode | CM | ||
| ) |
Import (using an Exporter).
| void Xpetra::EpetraCrsGraph::doExport | ( | const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > & | dest, |
| const Export< LocalOrdinal, GlobalOrdinal, Node > & | exporter, | ||
| CombineMode | CM | ||
| ) |
Export (using an Importer).
|
inline |
Get the underlying Epetra graph.
Definition at line 264 of file Xpetra_EpetraCrsGraph.hpp.
|
private |
Definition at line 270 of file Xpetra_EpetraCrsGraph.hpp.
1.8.5