Xpetra Version of the Day
Loading...
Searching...
No Matches
Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node > Class Template Reference

#include <Xpetra_EpetraCrsGraph.hpp>

Inheritance diagram for Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >:
Xpetra::CrsGraph< int, GlobalOrdinal, Node > Xpetra::DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > Teuchos::Describable Teuchos::LabeledObject

Private Types

typedef int LocalOrdinal
 
typedef Map< LocalOrdinal, GlobalOrdinal, Node > map_type
 The specialization of Map used by this class.
 
typedef Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >::local_graph_type local_graph_type
 
typedef Xpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node >::node_type node_type
 
typedef node_type::execution_space execution_space
 

Constructor/Destructor Methods

 EpetraCrsGraphT (const RCP< const map_type > &rowMap, const RCP< Teuchos::ParameterList > &plist=Teuchos::null)
 Constructor for empty DynamicProfile graph (no space is preallocated).
 
 EpetraCrsGraphT (const RCP< const map_type > &rowMap, size_t maxNumEntriesPerRow, const RCP< Teuchos::ParameterList > &plist=Teuchos::null)
 Constructor specifying fixed number of entries for each row.
 
 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 > &plist=null)
 Constructor specifying column Map and fixed number of entries for each row.
 
 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 > &params=null)
 
 EpetraCrsGraphT (const RCP< const CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &sourceGraph, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &domainMap=Teuchos::null, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rangeMap=Teuchos::null, const RCP< Teuchos::ParameterList > &params=Teuchos::null)
 
 EpetraCrsGraphT (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const typename local_graph_type::row_map_type &rowPointers, const typename local_graph_type::entries_type::non_const_type &columnIndices, const RCP< Teuchos::ParameterList > &plist=Teuchos::null)
 Constructor specifying column Map, number of entries in each row and column indices in each row.
 
 EpetraCrsGraphT (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const local_graph_type &lclGraph, const RCP< Teuchos::ParameterList > &plist=Teuchos::null)
 Constructor specifying column Map, number of entries in each row and column indices in each row.
 
 EpetraCrsGraphT (const local_graph_type &lclGraph, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, const Teuchos::RCP< const map_type > &domainMap=Teuchos::null, const Teuchos::RCP< const map_type > &rangeMap=Teuchos::null, const RCP< Teuchos::ParameterList > &plist=Teuchos::null)
 Constructor specifying column Map, number of entries in each row and column indices in each row.
 
virtual ~EpetraCrsGraphT ()
 Destructor.
 

Insertion/Removal Methods

void insertGlobalIndices (GlobalOrdinal globalRow, const ArrayView< const GlobalOrdinal > &indices)
 Insert global indices into the graph.
 
void insertLocalIndices (const LocalOrdinal localRow, const ArrayView< const LocalOrdinal > &indices)
 Insert local indices into the graph.
 
void removeLocalIndices (LocalOrdinal localRow)
 Remove all graph indices from the specified local row.
 
void allocateAllIndices (size_t numNonZeros, ArrayRCP< size_t > &rowptr, ArrayRCP< LocalOrdinal > &colind)
 Allocates the 1D pointer arrays of the graph.
 
void setAllIndices (const ArrayRCP< size_t > &rowptr, const ArrayRCP< LocalOrdinal > &colind)
 Sets the 1D pointer arrays of the graph.
 
void getAllIndices (ArrayRCP< const size_t > &rowptr, ArrayRCP< const LocalOrdinal > &colind) const
 Gets the 1D pointer arrays of the graph.
 

Transformational Methods

void fillComplete (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &domainMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rangeMap, const RCP< ParameterList > &params=null)
 Signal that data entry is complete, specifying domain and range maps.
 
void fillComplete (const RCP< ParameterList > &params=null)
 Signal that data entry is complete.
 
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 > &params=Teuchos::null)
 Expert version of fillComplete.
 

Methods implementing RowGraph.

RCP< const Comm< int > > getComm () const
 Returns the communicator.
 
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRowMap () const
 Returns the Map that describes the row distribution in this graph.
 
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getColMap () const
 Returns the Map that describes the column distribution in this graph.
 
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getDomainMap () const
 Returns the Map associated with the domain of this graph.
 
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getRangeMap () const
 Returns the Map associated with the domain of this graph.
 
RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > getImporter () const
 Returns the importer associated with this graph.
 
RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > getExporter () const
 Returns the exporter associated with this graph.
 
global_size_t getGlobalNumRows () const
 Returns the number of global rows in the graph.
 
global_size_t getGlobalNumCols () const
 Returns the number of global columns in the graph.
 
size_t getLocalNumRows () const
 Returns the number of graph rows owned on the calling node.
 
size_t getLocalNumCols () const
 Returns the number of columns connected to the locally owned rows of this graph.
 
GlobalOrdinal getIndexBase () const
 Returns the index base for global indices for this graph.
 
global_size_t getGlobalNumEntries () const
 Returns the global number of entries in the graph.
 
size_t getLocalNumEntries () const
 Returns the local number of entries in the graph.
 
size_t getNumEntriesInGlobalRow (GlobalOrdinal globalRow) const
 Returns the current number of entries on this node in the specified global row.
 
size_t getNumEntriesInLocalRow (LocalOrdinal localRow) const
 Returns the current number of entries on this node in the specified local row.
 
size_t getNumAllocatedEntriesInGlobalRow (GlobalOrdinal globalRow) const
 Returns the current number of allocated entries for this node in the specified global row .
 
size_t getNumAllocatedEntriesInLocalRow (LocalOrdinal localRow) const
 Returns the current number of allocated entries on this node in the specified local row.
 
size_t getGlobalMaxNumRowEntries () const
 Maximum number of entries in all rows over all processes.
 
size_t getLocalMaxNumRowEntries () const
 Maximum number of entries in all rows owned by the calling process.
 
bool hasColMap () const
 Whether the graph has a column Map.
 
bool isLocallyIndexed () const
 Whether column indices are stored using local indices on the calling process.
 
bool isGloballyIndexed () const
 Whether column indices are stored using global indices on the calling process.
 
bool isFillComplete () const
 Whether fillComplete() has been called and the graph is in compute mode.
 
bool isStorageOptimized () const
 Returns true if storage has been optimized.
 
void getGlobalRowView (GlobalOrdinal GlobalRow, ArrayView< const GlobalOrdinal > &Indices) const
 Return a const, nonpersisting view of global indices in the given row.
 
void getLocalRowView (LocalOrdinal LocalRow, ArrayView< const LocalOrdinal > &indices) const
 Return a const, nonpersisting view of local indices in the given row.
 
local_graph_type::HostMirror getLocalGraphHost () const
 Get the local graph.
 
local_graph_type getLocalGraphDevice () const
 
void computeGlobalConstants ()
 Force the computation of global constants if we don't have them.
 

Overridden from Teuchos::Describable

std::string description () const
 Return a simple one-line description of this object.
 
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.
 
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > getMap () const
 Implements DistObject interface.
 
void doImport (const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Import.
 
void doExport (const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &dest, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Export.
 
void doImport (const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Import (using an Exporter).
 
void doExport (const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &dest, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Export (using an Importer).
 

Xpetra specific

 EpetraCrsGraphT (const Teuchos::RCP< Epetra_CrsGraph > &graph)
 EpetraCrsGraphT constructor to wrap a Epetra_CrsGraph object.
 
RCP< const Epetra_CrsGraphgetEpetra_CrsGraph () const
 Get the underlying Epetra graph.
 

Additional Inherited Members

- Public Types inherited from Xpetra::CrsGraph< int, GlobalOrdinal, Node >
typedef int local_ordinal_type
 
typedef GlobalOrdinal global_ordinal_type
 
typedef Node node_type
 
typedef node_type::execution_space execution_space
 
typedef node_type::device_type device_type
 
typedef Kokkos::StaticCrsGraph< int, Kokkos::LayoutLeft, device_type, void, size_t > local_graph_type
 
- Public Member Functions inherited from Xpetra::CrsGraph< int, GlobalOrdinal, Node >
virtual ~CrsGraph ()
 Destructor.
 
- Public Member Functions inherited from Xpetra::DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node >
virtual ~DistObject ()
 Destructor.
 
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").
 
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").
 
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").
 
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").
 
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").
 
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").
 
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").
 
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").
 
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").
 
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").
 
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").
 
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").
 
- Public Member Functions inherited from Teuchos::Describable
virtual std::string description () const
 
virtual void describe (FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const
 
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)
 
virtual std::string description () const
 
virtual void describe (FancyOStream &out, const EVerbosityLevel verbLevel=verbLevel_default) const
 
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
 

Detailed Description

template<class GlobalOrdinal, class Node>
class Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >

Definition at line 75 of file Xpetra_EpetraCrsGraph.hpp.

Member Typedef Documentation

◆ LocalOrdinal

template<class GlobalOrdinal , class Node >
typedef int Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::LocalOrdinal
private

Definition at line 78 of file Xpetra_EpetraCrsGraph.hpp.

◆ map_type

template<class GlobalOrdinal , class Node >
typedef Map<LocalOrdinal,GlobalOrdinal,Node> Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::map_type
private

The specialization of Map used by this class.

Definition at line 81 of file Xpetra_EpetraCrsGraph.hpp.

◆ local_graph_type

template<class GlobalOrdinal , class Node >
typedef Xpetra::CrsGraph<LocalOrdinal,GlobalOrdinal,Node>::local_graph_type Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::local_graph_type
private

Definition at line 84 of file Xpetra_EpetraCrsGraph.hpp.

◆ node_type

template<class GlobalOrdinal , class Node >
typedef Xpetra::CrsGraph<LocalOrdinal,GlobalOrdinal,Node>::node_type Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::node_type
private

Definition at line 85 of file Xpetra_EpetraCrsGraph.hpp.

◆ execution_space

template<class GlobalOrdinal , class Node >
typedef node_type::execution_space Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::execution_space
private

Definition at line 86 of file Xpetra_EpetraCrsGraph.hpp.

Constructor & Destructor Documentation

◆ EpetraCrsGraphT() [1/9]

template<class GlobalOrdinal , class Node >
Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::EpetraCrsGraphT ( const RCP< const map_type > &  rowMap,
const RCP< Teuchos::ParameterList > &  plist = Teuchos::null 
)
inline

Constructor for empty DynamicProfile graph (no space is preallocated).

Definition at line 94 of file Xpetra_EpetraCrsGraph.hpp.

◆ EpetraCrsGraphT() [2/9]

template<class GlobalOrdinal , class Node >
Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::EpetraCrsGraphT ( const RCP< const map_type > &  rowMap,
size_t  maxNumEntriesPerRow,
const RCP< Teuchos::ParameterList > &  plist = Teuchos::null 
)
inline

Constructor specifying fixed number of entries for each row.

Definition at line 100 of file Xpetra_EpetraCrsGraph.hpp.

◆ EpetraCrsGraphT() [3/9]

template<class GlobalOrdinal , class Node >
Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::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 > &  plist = null 
)
inline

Constructor specifying column Map and fixed number of entries for each row.

Definition at line 106 of file Xpetra_EpetraCrsGraph.hpp.

◆ EpetraCrsGraphT() [4/9]

template<class GlobalOrdinal , class Node >
Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::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 > &  params = null 
)
inline

Definition at line 113 of file Xpetra_EpetraCrsGraph.hpp.

◆ EpetraCrsGraphT() [5/9]

template<class GlobalOrdinal , class Node >
Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::EpetraCrsGraphT ( const RCP< const CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &  sourceGraph,
const Import< LocalOrdinal, GlobalOrdinal, Node > &  importer,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  domainMap = Teuchos::null,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  rangeMap = Teuchos::null,
const RCP< Teuchos::ParameterList > &  params = Teuchos::null 
)
inline

Definition at line 119 of file Xpetra_EpetraCrsGraph.hpp.

◆ EpetraCrsGraphT() [6/9]

template<class GlobalOrdinal , class Node >
Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::EpetraCrsGraphT ( const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  rowMap,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  colMap,
const typename local_graph_type::row_map_type &  rowPointers,
const typename local_graph_type::entries_type::non_const_type &  columnIndices,
const RCP< Teuchos::ParameterList > &  plist = Teuchos::null 
)
inline

Constructor specifying column Map, number of entries in each row and column indices in each row.

Definition at line 132 of file Xpetra_EpetraCrsGraph.hpp.

◆ EpetraCrsGraphT() [7/9]

template<class GlobalOrdinal , class Node >
Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::EpetraCrsGraphT ( const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  rowMap,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  colMap,
const local_graph_type lclGraph,
const RCP< Teuchos::ParameterList > &  plist = Teuchos::null 
)
inline

Constructor specifying column Map, number of entries in each row and column indices in each row.

Definition at line 142 of file Xpetra_EpetraCrsGraph.hpp.

◆ EpetraCrsGraphT() [8/9]

template<class GlobalOrdinal , class Node >
Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::EpetraCrsGraphT ( const local_graph_type lclGraph,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  rowMap,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  colMap,
const Teuchos::RCP< const map_type > &  domainMap = Teuchos::null,
const Teuchos::RCP< const map_type > &  rangeMap = Teuchos::null,
const RCP< Teuchos::ParameterList > &  plist = Teuchos::null 
)
inline

Constructor specifying column Map, number of entries in each row and column indices in each row.

Definition at line 151 of file Xpetra_EpetraCrsGraph.hpp.

◆ ~EpetraCrsGraphT()

template<class GlobalOrdinal , class Node >
virtual Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::~EpetraCrsGraphT ( )
inlinevirtual

Destructor.

Definition at line 163 of file Xpetra_EpetraCrsGraph.hpp.

◆ EpetraCrsGraphT() [9/9]

template<class GlobalOrdinal , class Node >
Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::EpetraCrsGraphT ( const Teuchos::RCP< Epetra_CrsGraph > &  graph)
inline

EpetraCrsGraphT constructor to wrap a Epetra_CrsGraph object.

Definition at line 368 of file Xpetra_EpetraCrsGraph.hpp.

Member Function Documentation

◆ insertGlobalIndices()

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::insertGlobalIndices ( GlobalOrdinal  globalRow,
const ArrayView< const GlobalOrdinal > &  indices 
)
inlinevirtual

Insert global indices into the graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 171 of file Xpetra_EpetraCrsGraph.hpp.

◆ insertLocalIndices()

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::insertLocalIndices ( const LocalOrdinal  localRow,
const ArrayView< const LocalOrdinal > &  indices 
)
inlinevirtual

Insert local indices into the graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 174 of file Xpetra_EpetraCrsGraph.hpp.

◆ removeLocalIndices()

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::removeLocalIndices ( LocalOrdinal  localRow)
inlinevirtual

Remove all graph indices from the specified local row.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 177 of file Xpetra_EpetraCrsGraph.hpp.

◆ allocateAllIndices()

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::allocateAllIndices ( size_t  numNonZeros,
ArrayRCP< size_t > &  rowptr,
ArrayRCP< LocalOrdinal > &  colind 
)
inlinevirtual

Allocates the 1D pointer arrays of the graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 180 of file Xpetra_EpetraCrsGraph.hpp.

◆ setAllIndices()

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::setAllIndices ( const ArrayRCP< size_t > &  rowptr,
const ArrayRCP< LocalOrdinal > &  colind 
)
inlinevirtual

Sets the 1D pointer arrays of the graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 183 of file Xpetra_EpetraCrsGraph.hpp.

◆ getAllIndices()

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getAllIndices ( ArrayRCP< const size_t > &  rowptr,
ArrayRCP< const LocalOrdinal > &  colind 
) const
inlinevirtual

Gets the 1D pointer arrays of the graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 186 of file Xpetra_EpetraCrsGraph.hpp.

◆ fillComplete() [1/2]

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::fillComplete ( const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  domainMap,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &  rangeMap,
const RCP< ParameterList > &  params = null 
)
inlinevirtual

Signal that data entry is complete, specifying domain and range maps.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 195 of file Xpetra_EpetraCrsGraph.hpp.

◆ fillComplete() [2/2]

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::fillComplete ( const RCP< ParameterList > &  params = null)
inlinevirtual

Signal that data entry is complete.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 198 of file Xpetra_EpetraCrsGraph.hpp.

◆ expertStaticFillComplete()

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::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 > &  params = Teuchos::null 
)
inlinevirtual

Expert version of fillComplete.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 202 of file Xpetra_EpetraCrsGraph.hpp.

◆ getComm()

template<class GlobalOrdinal , class Node >
RCP< const Comm< int > > Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getComm ( ) const
inlinevirtual

Returns the communicator.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 217 of file Xpetra_EpetraCrsGraph.hpp.

◆ getRowMap()

template<class GlobalOrdinal , class Node >
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getRowMap ( ) const
inlinevirtual

Returns the Map that describes the row distribution in this graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 222 of file Xpetra_EpetraCrsGraph.hpp.

◆ getColMap()

template<class GlobalOrdinal , class Node >
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getColMap ( ) const
inlinevirtual

Returns the Map that describes the column distribution in this graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 225 of file Xpetra_EpetraCrsGraph.hpp.

◆ getDomainMap()

template<class GlobalOrdinal , class Node >
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getDomainMap ( ) const
inlinevirtual

Returns the Map associated with the domain of this graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 228 of file Xpetra_EpetraCrsGraph.hpp.

◆ getRangeMap()

template<class GlobalOrdinal , class Node >
RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getRangeMap ( ) const
inlinevirtual

Returns the Map associated with the domain of this graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 231 of file Xpetra_EpetraCrsGraph.hpp.

◆ getImporter()

template<class GlobalOrdinal , class Node >
RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getImporter ( ) const
inlinevirtual

Returns the importer associated with this graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 234 of file Xpetra_EpetraCrsGraph.hpp.

◆ getExporter()

template<class GlobalOrdinal , class Node >
RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getExporter ( ) const
inlinevirtual

Returns the exporter associated with this graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 237 of file Xpetra_EpetraCrsGraph.hpp.

◆ getGlobalNumRows()

template<class GlobalOrdinal , class Node >
global_size_t Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getGlobalNumRows ( ) const
inlinevirtual

Returns the number of global rows in the graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 240 of file Xpetra_EpetraCrsGraph.hpp.

◆ getGlobalNumCols()

template<class GlobalOrdinal , class Node >
global_size_t Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getGlobalNumCols ( ) const
inlinevirtual

Returns the number of global columns in the graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 243 of file Xpetra_EpetraCrsGraph.hpp.

◆ getLocalNumRows()

template<class GlobalOrdinal , class Node >
size_t Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getLocalNumRows ( ) const
inlinevirtual

Returns the number of graph rows owned on the calling node.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 246 of file Xpetra_EpetraCrsGraph.hpp.

◆ getLocalNumCols()

template<class GlobalOrdinal , class Node >
size_t Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getLocalNumCols ( ) const
inlinevirtual

Returns the number of columns connected to the locally owned rows of this graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 249 of file Xpetra_EpetraCrsGraph.hpp.

◆ getIndexBase()

template<class GlobalOrdinal , class Node >
GlobalOrdinal Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getIndexBase ( ) const
inlinevirtual

Returns the index base for global indices for this graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 252 of file Xpetra_EpetraCrsGraph.hpp.

◆ getGlobalNumEntries()

template<class GlobalOrdinal , class Node >
global_size_t Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getGlobalNumEntries ( ) const
inlinevirtual

Returns the global number of entries in the graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 255 of file Xpetra_EpetraCrsGraph.hpp.

◆ getLocalNumEntries()

template<class GlobalOrdinal , class Node >
size_t Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getLocalNumEntries ( ) const
inlinevirtual

Returns the local number of entries in the graph.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 258 of file Xpetra_EpetraCrsGraph.hpp.

◆ getNumEntriesInGlobalRow()

template<class GlobalOrdinal , class Node >
size_t Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getNumEntriesInGlobalRow ( GlobalOrdinal  globalRow) const
inlinevirtual

Returns the current number of entries on this node in the specified global row.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 261 of file Xpetra_EpetraCrsGraph.hpp.

◆ getNumEntriesInLocalRow()

template<class GlobalOrdinal , class Node >
size_t Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getNumEntriesInLocalRow ( LocalOrdinal  localRow) const
inlinevirtual

Returns the current number of entries on this node in the specified local row.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 264 of file Xpetra_EpetraCrsGraph.hpp.

◆ getNumAllocatedEntriesInGlobalRow()

template<class GlobalOrdinal , class Node >
size_t Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getNumAllocatedEntriesInGlobalRow ( GlobalOrdinal  globalRow) const
inlinevirtual

Returns the current number of allocated entries for this node in the specified global row .

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 267 of file Xpetra_EpetraCrsGraph.hpp.

◆ getNumAllocatedEntriesInLocalRow()

template<class GlobalOrdinal , class Node >
size_t Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getNumAllocatedEntriesInLocalRow ( LocalOrdinal  localRow) const
inlinevirtual

Returns the current number of allocated entries on this node in the specified local row.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 270 of file Xpetra_EpetraCrsGraph.hpp.

◆ getGlobalMaxNumRowEntries()

template<class GlobalOrdinal , class Node >
size_t Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getGlobalMaxNumRowEntries ( ) const
inlinevirtual

Maximum number of entries in all rows over all processes.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 273 of file Xpetra_EpetraCrsGraph.hpp.

◆ getLocalMaxNumRowEntries()

template<class GlobalOrdinal , class Node >
size_t Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getLocalMaxNumRowEntries ( ) const
inlinevirtual

Maximum number of entries in all rows owned by the calling process.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 276 of file Xpetra_EpetraCrsGraph.hpp.

◆ hasColMap()

template<class GlobalOrdinal , class Node >
bool Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::hasColMap ( ) const
inlinevirtual

Whether the graph has a column Map.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 279 of file Xpetra_EpetraCrsGraph.hpp.

◆ isLocallyIndexed()

template<class GlobalOrdinal , class Node >
bool Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::isLocallyIndexed ( ) const
inlinevirtual

Whether column indices are stored using local indices on the calling process.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 282 of file Xpetra_EpetraCrsGraph.hpp.

◆ isGloballyIndexed()

template<class GlobalOrdinal , class Node >
bool Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::isGloballyIndexed ( ) const
inlinevirtual

Whether column indices are stored using global indices on the calling process.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 285 of file Xpetra_EpetraCrsGraph.hpp.

◆ isFillComplete()

template<class GlobalOrdinal , class Node >
bool Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::isFillComplete ( ) const
inlinevirtual

Whether fillComplete() has been called and the graph is in compute mode.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 288 of file Xpetra_EpetraCrsGraph.hpp.

◆ isStorageOptimized()

template<class GlobalOrdinal , class Node >
bool Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::isStorageOptimized ( ) const
inlinevirtual

Returns true if storage has been optimized.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 291 of file Xpetra_EpetraCrsGraph.hpp.

◆ getGlobalRowView()

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getGlobalRowView ( GlobalOrdinal  GlobalRow,
ArrayView< const GlobalOrdinal > &  Indices 
) const
inlinevirtual

Return a const, nonpersisting view of global indices in the given row.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 294 of file Xpetra_EpetraCrsGraph.hpp.

◆ getLocalRowView()

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getLocalRowView ( LocalOrdinal  LocalRow,
ArrayView< const LocalOrdinal > &  indices 
) const
inlinevirtual

Return a const, nonpersisting view of local indices in the given row.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 297 of file Xpetra_EpetraCrsGraph.hpp.

◆ getLocalGraphHost()

template<class GlobalOrdinal , class Node >
local_graph_type::HostMirror Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getLocalGraphHost ( ) const
inlinevirtual

Get the local graph.

Warning
THIS IS AN EXPERT MODE FUNCTION. THIS IS AN IMPLEMENTATION DETAIL. DO NOT CALL THIS FUNCTION!!!

This is only a valid representation of the local graph if the (global) graph is fill complete.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 300 of file Xpetra_EpetraCrsGraph.hpp.

◆ getLocalGraphDevice()

template<class GlobalOrdinal , class Node >
local_graph_type Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getLocalGraphDevice ( ) const
inlinevirtual

◆ computeGlobalConstants()

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::computeGlobalConstants ( )
inlinevirtual

Force the computation of global constants if we don't have them.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 326 of file Xpetra_EpetraCrsGraph.hpp.

◆ description()

template<class GlobalOrdinal , class Node >
std::string Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::description ( ) const
inlinevirtual

Return a simple one-line description of this object.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 334 of file Xpetra_EpetraCrsGraph.hpp.

◆ describe()

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::describe ( Teuchos::FancyOStream out,
const Teuchos::EVerbosityLevel  verbLevel = Teuchos::Describable::verbLevel_default 
) const
inlinevirtual

Print the object with some verbosity level to an FancyOStream object.

Implements Xpetra::CrsGraph< int, GlobalOrdinal, Node >.

Definition at line 337 of file Xpetra_EpetraCrsGraph.hpp.

◆ getMap()

template<class GlobalOrdinal , class Node >
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getMap ( ) const
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 345 of file Xpetra_EpetraCrsGraph.hpp.

◆ doImport() [1/2]

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::doImport ( const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &  source,
const Import< LocalOrdinal, GlobalOrdinal, Node > &  importer,
CombineMode  CM 
)
inline

Import.

Definition at line 348 of file Xpetra_EpetraCrsGraph.hpp.

◆ doExport() [1/2]

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::doExport ( const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &  dest,
const Import< LocalOrdinal, GlobalOrdinal, Node > &  importer,
CombineMode  CM 
)
inline

Export.

Definition at line 352 of file Xpetra_EpetraCrsGraph.hpp.

◆ doImport() [2/2]

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::doImport ( const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &  source,
const Export< LocalOrdinal, GlobalOrdinal, Node > &  exporter,
CombineMode  CM 
)
inline

Import (using an Exporter).

Definition at line 356 of file Xpetra_EpetraCrsGraph.hpp.

◆ doExport() [2/2]

template<class GlobalOrdinal , class Node >
void Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::doExport ( const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &  dest,
const Export< LocalOrdinal, GlobalOrdinal, Node > &  exporter,
CombineMode  CM 
)
inline

Export (using an Importer).

Definition at line 360 of file Xpetra_EpetraCrsGraph.hpp.

◆ getEpetra_CrsGraph()

template<class GlobalOrdinal , class Node >
RCP< const Epetra_CrsGraph > Xpetra::EpetraCrsGraphT< GlobalOrdinal, Node >::getEpetra_CrsGraph ( ) const
inline

Get the underlying Epetra graph.

Definition at line 374 of file Xpetra_EpetraCrsGraph.hpp.


The documentation for this class was generated from the following file: