Xpetra Version of the Day
Loading...
Searching...
No Matches
Xpetra::TpetraCrsGraph< int, int, EpetraNode > Class Reference

#include <Xpetra_TpetraCrsGraph_def.hpp>

Inheritance diagram for Xpetra::TpetraCrsGraph< int, int, EpetraNode >:
Xpetra::CrsGraph< int, int, EpetraNode > Xpetra::CrsGraph< int, int, EpetraNode > Xpetra::DistObject< int, int, int, EpetraNode > Xpetra::DistObject< int, int, int, EpetraNode > Teuchos::Describable Teuchos::Describable Teuchos::LabeledObject Teuchos::LabeledObject

Private Types

typedef int LocalOrdinal
typedef int GlobalOrdinal
typedef EpetraNode Node
typedef TpetraCrsGraph< LocalOrdinal, GlobalOrdinal, NodeTpetraCrsGraphClass
typedef Map< LocalOrdinal, GlobalOrdinal, Nodemap_type
typedef TpetraImport< int, int, EpetraNodeTpetraImportClass
typedef TpetraExport< int, int, EpetraNodeTpetraExportClass
typedef Xpetra::CrsGraph< int, int, EpetraNode >::local_graph_type local_graph_type

Constructor/Destructor Methods

 TpetraCrsGraph (const RCP< const map_type > &rowMap, size_t maxNumEntriesPerRow, const RCP< ParameterList > &params=null)
 Constructor specifying fixed number of entries for each row.
 TpetraCrsGraph (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const ArrayRCP< const size_t > &NumEntriesPerRowToAlloc, const RCP< ParameterList > &params=null)
 Constructor specifying (possibly different) number of entries in each row.
 TpetraCrsGraph (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &colMap, size_t maxNumEntriesPerRow, const RCP< ParameterList > &params=null)
 Constructor specifying column Map and fixed number of entries for each row.
 TpetraCrsGraph (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)
 Constructor specifying column Map and number of entries in each row.
 TpetraCrsGraph (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &rowMap, const Teuchos::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 Teuchos::RCP< Teuchos::ParameterList > &plist=Teuchos::null)
 Constructor specifying column Map and arrays containing the graph in sorted, local ids.
 TpetraCrsGraph (const Teuchos::RCP< const map_type > &rowMap, const Teuchos::RCP< const map_type > &colMap, const local_graph_type &lclGraph, const Teuchos::RCP< Teuchos::ParameterList > &params)
 Constructor specifying column Map and a local (sorted) graph, which the resulting CrsGraph views.
 TpetraCrsGraph (const local_graph_type &lclGraph, const Teuchos::RCP< const map_type > &rowMap, const Teuchos::RCP< const map_type > &colMap, const Teuchos::RCP< const map_type > &domainMap=Teuchos::null, const Teuchos::RCP< const map_type > &rangeMap=Teuchos::null, const Teuchos::RCP< Teuchos::ParameterList > &params=Teuchos::null)
 Constructor specifying column, domain and range maps, and a local (sorted) graph, which the resulting CrsGraph views.
virtual ~TpetraCrsGraph ()
 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_type > &domainMap, const Teuchos::RCP< const map_type > &rangeMap, const Teuchos::RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > &importer=null, const Teuchos::RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > &exporter=null, const Teuchos::RCP< Teuchos::ParameterList > &params=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 getLocalGraph () const
 Access the local KokkosSparse::StaticCrsGraph data.
void computeGlobalConstants ()
 Dummy implementation for computeGlobalConstants.

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.

Advanced methods, at increased risk of deprecation.

ArrayRCP< const size_t > getNodeRowPtrs () const
 Get an ArrayRCP of the row-offsets.
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

 TpetraCrsGraph (const Teuchos::RCP< Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > &graph)
 TpetraCrsGraph constructor to wrap a Tpetra::CrsGraph object.
RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > getTpetra_CrsGraph () const
 Get the underlying Tpetra graph.

Methods implementing RowGraph.

local_graph_type::HostMirror getLocalGraphHost () const
 Access the local KokkosSparse::StaticCrsGraph data for host use.
local_graph_type getLocalGraphDevice () const
 Access the local KokkosSparse::StaticCrsGraph data for device use.
void getLocalDiagOffsets (const Kokkos::View< size_t *, typename EpetraNode::device_type, Kokkos::MemoryUnmanaged > &offsets) const
 Get offsets of the diagonal entries in the matrix.

Xpetra specific

RCP< Tpetra::CrsGraph< int, int, EpetraNode > > graph_

Additional Inherited Members

Public Types inherited from Xpetra::CrsGraph< int, int, EpetraNode >
typedef int local_ordinal_type
typedef int global_ordinal_type
typedef EpetraNode 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
virtual void getLocalDiagOffsets (const Kokkos::View< size_t *, device_type, Kokkos::MemoryUnmanaged > &offsets) const=0
 Get offsets of the diagonal entries in the matrix.
virtual ~CrsGraph ()
 Destructor.
virtual void expertStaticFillComplete (const RCP< const Map< int, int, EpetraNode > > &domainMap, const RCP< const Map< int, int, EpetraNode > > &rangeMap, const RCP< const Import< int, int, EpetraNode > > &importer=null, const RCP< const Export< int, int, EpetraNode > > &exporter=null, const RCP< Teuchos::ParameterList > &params=null)=0
 Expert version of fillComplete.
virtual ~DistObject ()
 Destructor.
virtual void beginImport (const DistObject< int, int, int, EpetraNode > &source, const Import< int, int, EpetraNode > &importer, CombineMode CM)
 Import data into this object using an Import object ("forward mode").
virtual void endImport (const DistObject< int, int, int, EpetraNode > &source, const Import< int, int, EpetraNode > &importer, CombineMode CM)
 Import data into this object using an Import object ("forward mode").
virtual void beginExport (const DistObject< int, int, int, EpetraNode > &source, const Export< int, int, EpetraNode > &exporter, CombineMode CM)
 Export data into this object using an Export object ("forward mode").
virtual void endExport (const DistObject< int, int, int, EpetraNode > &source, const Export< int, int, EpetraNode > &exporter, CombineMode CM)
 Export data into this object using an Export object ("forward mode").
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

Detailed Description

Definition at line 442 of file Xpetra_TpetraCrsGraph_def.hpp.

Member Typedef Documentation

◆ LocalOrdinal

typedef int Xpetra::TpetraCrsGraph< int, int, EpetraNode >::LocalOrdinal
private

Definition at line 444 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ GlobalOrdinal

typedef int Xpetra::TpetraCrsGraph< int, int, EpetraNode >::GlobalOrdinal
private

Definition at line 445 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ Node

typedef EpetraNode Xpetra::TpetraCrsGraph< int, int, EpetraNode >::Node
private

Definition at line 446 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ TpetraCrsGraphClass

typedef TpetraCrsGraph<LocalOrdinal, GlobalOrdinal, Node> Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraphClass
private

Definition at line 449 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ map_type

typedef Map<LocalOrdinal, GlobalOrdinal, Node> Xpetra::TpetraCrsGraph< int, int, EpetraNode >::map_type
private

Definition at line 450 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ TpetraImportClass

typedef TpetraImport<int, int, EpetraNode> Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraImportClass
private

Definition at line 37 of file Xpetra_TpetraCrsGraph_decl.hpp.

◆ TpetraExportClass

typedef TpetraExport<int, int, EpetraNode> Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraExportClass
private

Definition at line 38 of file Xpetra_TpetraCrsGraph_decl.hpp.

◆ local_graph_type

typedef Xpetra::CrsGraph<int,int,EpetraNode>::local_graph_type Xpetra::TpetraCrsGraph< int, int, EpetraNode >::local_graph_type
private

Definition at line 41 of file Xpetra_TpetraCrsGraph_decl.hpp.

Constructor & Destructor Documentation

◆ TpetraCrsGraph() [1/8]

Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraph ( const RCP< const map_type > & rowMap,
size_t maxNumEntriesPerRow,
const RCP< ParameterList > & params = null )
inline

Constructor specifying fixed number of entries for each row.

Definition at line 457 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ TpetraCrsGraph() [2/8]

Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraph ( const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & rowMap,
const ArrayRCP< const size_t > & NumEntriesPerRowToAlloc,
const RCP< ParameterList > & params = null )
inline

Constructor specifying (possibly different) number of entries in each row.

Definition at line 462 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ TpetraCrsGraph() [3/8]

Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraph ( const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & rowMap,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & colMap,
size_t maxNumEntriesPerRow,
const RCP< ParameterList > & params = null )
inline

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

Definition at line 467 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ TpetraCrsGraph() [4/8]

Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraph ( 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

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

Definition at line 472 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ TpetraCrsGraph() [5/8]

Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraph ( const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & rowMap,
const Teuchos::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 Teuchos::RCP< Teuchos::ParameterList > & plist = Teuchos::null )
inline

Constructor specifying column Map and arrays containing the graph in sorted, local ids.

Parameters
rowMap[in] Distribution of rows of the graph.
colMap[in] Distribution of columns of the graph.
rowPointers[in] The beginning of each row in the graph, as in a CSR "rowptr" array. The length of this vector should be equal to the number of rows in the graph, plus one. This last entry should store the nunber of nonzeros in the graph.
columnIndices[in] The local indices of the columns, as in a CSR "colind" array. The length of this vector should be equal to the number of unknowns in the graph.
params[in/out] Optional list of parameters. If not null, any missing parameters will be filled in with their default values.

Definition at line 495 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ TpetraCrsGraph() [6/8]

Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraph ( const Teuchos::RCP< const map_type > & rowMap,
const Teuchos::RCP< const map_type > & colMap,
const local_graph_type & lclGraph,
const Teuchos::RCP< Teuchos::ParameterList > & params )
inline

Constructor specifying column Map and a local (sorted) graph, which the resulting CrsGraph views.

Unlike most other CrsGraph constructors, successful completion of this constructor will result in a fill-complete graph.

Parameters
rowMap[in] Distribution of rows of the graph.
colMap[in] Distribution of columns of the graph.
lclGraph[in] A locally indexed Kokkos::StaticCrsGraph whose local row indices come from the specified row Map, and whose local column indices come from the specified column Map.
params[in/out] Optional list of parameters. If not null, any missing parameters will be filled in with their default values.

Definition at line 524 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ TpetraCrsGraph() [7/8]

Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraph ( const local_graph_type & lclGraph,
const Teuchos::RCP< const map_type > & rowMap,
const Teuchos::RCP< const map_type > & colMap,
const Teuchos::RCP< const map_type > & domainMap = Teuchos::null,
const Teuchos::RCP< const map_type > & rangeMap = Teuchos::null,
const Teuchos::RCP< Teuchos::ParameterList > & params = Teuchos::null )
inline

Constructor specifying column, domain and range maps, and a local (sorted) graph, which the resulting CrsGraph views.

Unlike most other CrsGraph constructors, successful completion of this constructor will result in a fill-complete graph.

Parameters
rowMap[in] Distribution of rows of the graph.
colMap[in] Distribution of columns of the graph.
domainMap[in] The graph's domain Map. MUST be one to one!
rangeMap[in] The graph's range Map. MUST be one to one! May be, but need not be, the same as the domain Map.
lclGraph[in] A locally indexed Kokkos::StaticCrsGraph whose local row indices come from the specified row Map, and whose local column indices come from the specified column Map.
params[in/out] Optional list of parameters. If not null, any missing parameters will be filled in with their default values.

Definition at line 558 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ ~TpetraCrsGraph()

virtual Xpetra::TpetraCrsGraph< int, int, EpetraNode >::~TpetraCrsGraph ( )
inlinevirtual

Destructor.

Definition at line 571 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ TpetraCrsGraph() [8/8]

Xpetra::TpetraCrsGraph< int, int, EpetraNode >::TpetraCrsGraph ( const Teuchos::RCP< Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > & graph)
inline

TpetraCrsGraph constructor to wrap a Tpetra::CrsGraph object.

Definition at line 759 of file Xpetra_TpetraCrsGraph_def.hpp.

Member Function Documentation

◆ insertGlobalIndices()

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::insertGlobalIndices ( GlobalOrdinal globalRow,
const ArrayView< const GlobalOrdinal > & indices )
inlinevirtual

Insert global indices into the graph.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 579 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ insertLocalIndices()

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::insertLocalIndices ( const LocalOrdinal localRow,
const ArrayView< const LocalOrdinal > & indices )
inlinevirtual

Insert local indices into the graph.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 582 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ removeLocalIndices()

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::removeLocalIndices ( LocalOrdinal localRow)
inlinevirtual

Remove all graph indices from the specified local row.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 585 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ allocateAllIndices()

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::allocateAllIndices ( size_t numNonZeros,
ArrayRCP< size_t > & rowptr,
ArrayRCP< LocalOrdinal > & colind )
inlinevirtual

Allocates the 1D pointer arrays of the graph.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 588 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ setAllIndices()

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::setAllIndices ( const ArrayRCP< size_t > & rowptr,
const ArrayRCP< LocalOrdinal > & colind )
inlinevirtual

Sets the 1D pointer arrays of the graph.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 591 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getAllIndices()

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getAllIndices ( ArrayRCP< const size_t > & rowptr,
ArrayRCP< const LocalOrdinal > & colind ) const
inlinevirtual

Gets the 1D pointer arrays of the graph.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 594 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ fillComplete() [1/2]

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::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, int, EpetraNode >.

Definition at line 602 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ fillComplete() [2/2]

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::fillComplete ( const RCP< ParameterList > & params = null)
inline

Signal that data entry is complete.

Definition at line 605 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ expertStaticFillComplete()

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::expertStaticFillComplete ( const Teuchos::RCP< const map_type > & domainMap,
const Teuchos::RCP< const map_type > & rangeMap,
const Teuchos::RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > & importer = null,
const Teuchos::RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > & exporter = null,
const Teuchos::RCP< Teuchos::ParameterList > & params = null )
inline

Expert version of fillComplete.

Definition at line 608 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getComm()

RCP< const Comm< int > > Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getComm ( ) const
inlinevirtual

Returns the communicator.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 620 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getRowMap()

RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getRowMap ( ) const
inlinevirtual

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

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 623 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getColMap()

RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getColMap ( ) const
inlinevirtual

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

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 626 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getDomainMap()

RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getDomainMap ( ) const
inlinevirtual

Returns the Map associated with the domain of this graph.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 629 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getRangeMap()

RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getRangeMap ( ) const
inlinevirtual

Returns the Map associated with the domain of this graph.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 632 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getImporter()

RCP< const Import< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getImporter ( ) const
inlinevirtual

Returns the importer associated with this graph.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 635 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getExporter()

RCP< const Export< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getExporter ( ) const
inlinevirtual

Returns the exporter associated with this graph.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 638 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getGlobalNumRows()

global_size_t Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getGlobalNumRows ( ) const
inlinevirtual

Returns the number of global rows in the graph.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 641 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getGlobalNumCols()

global_size_t Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getGlobalNumCols ( ) const
inlinevirtual

Returns the number of global columns in the graph.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 644 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getLocalNumRows()

size_t Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getLocalNumRows ( ) const
inlinevirtual

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

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 647 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getLocalNumCols()

size_t Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getLocalNumCols ( ) const
inlinevirtual

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

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 650 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getIndexBase()

GlobalOrdinal Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getIndexBase ( ) const
inlinevirtual

Returns the index base for global indices for this graph.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 653 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getGlobalNumEntries()

global_size_t Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getGlobalNumEntries ( ) const
inlinevirtual

Returns the global number of entries in the graph.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 656 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getLocalNumEntries()

size_t Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getLocalNumEntries ( ) const
inlinevirtual

Returns the local number of entries in the graph.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 659 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getNumEntriesInGlobalRow()

size_t Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getNumEntriesInGlobalRow ( GlobalOrdinal globalRow) const
inlinevirtual

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

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 662 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getNumEntriesInLocalRow()

size_t Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getNumEntriesInLocalRow ( LocalOrdinal localRow) const
inlinevirtual

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

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 665 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getNumAllocatedEntriesInGlobalRow()

size_t Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getNumAllocatedEntriesInGlobalRow ( GlobalOrdinal globalRow) const
inlinevirtual

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

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 668 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getNumAllocatedEntriesInLocalRow()

size_t Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getNumAllocatedEntriesInLocalRow ( LocalOrdinal localRow) const
inlinevirtual

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

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 671 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getGlobalMaxNumRowEntries()

size_t Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getGlobalMaxNumRowEntries ( ) const
inlinevirtual

Maximum number of entries in all rows over all processes.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 674 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getLocalMaxNumRowEntries()

size_t Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getLocalMaxNumRowEntries ( ) const
inlinevirtual

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

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 677 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ hasColMap()

bool Xpetra::TpetraCrsGraph< int, int, EpetraNode >::hasColMap ( ) const
inlinevirtual

Whether the graph has a column Map.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 680 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ isLocallyIndexed()

bool Xpetra::TpetraCrsGraph< int, int, EpetraNode >::isLocallyIndexed ( ) const
inlinevirtual

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

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 683 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ isGloballyIndexed()

bool Xpetra::TpetraCrsGraph< int, int, EpetraNode >::isGloballyIndexed ( ) const
inlinevirtual

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

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 686 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ isFillComplete()

bool Xpetra::TpetraCrsGraph< int, int, EpetraNode >::isFillComplete ( ) const
inlinevirtual

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

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 689 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ isStorageOptimized()

bool Xpetra::TpetraCrsGraph< int, int, EpetraNode >::isStorageOptimized ( ) const
inlinevirtual

Returns true if storage has been optimized.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 692 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getGlobalRowView()

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::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, int, EpetraNode >.

Definition at line 695 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getLocalRowView()

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::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, int, EpetraNode >.

Definition at line 698 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getLocalGraph()

local_graph_type Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getLocalGraph ( ) const
inline

Access the local KokkosSparse::StaticCrsGraph data.

Definition at line 701 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ computeGlobalConstants()

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::computeGlobalConstants ( )
inlinevirtual

Dummy implementation for computeGlobalConstants.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 708 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ description()

std::string Xpetra::TpetraCrsGraph< int, int, EpetraNode >::description ( ) const
inlinevirtual

Return a simple one-line description of this object.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 716 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ describe()

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::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, int, EpetraNode >.

Definition at line 719 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getNodeRowPtrs()

ArrayRCP< const size_t > Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getNodeRowPtrs ( ) const
inline

Get an ArrayRCP of the row-offsets.

Definition at line 727 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getMap()

Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getMap ( ) const
inlinevirtual

Implements DistObject interface.

Access function for the Tpetra::Map this DistObject was constructed with.

Implements Xpetra::DistObject< int, int, int, EpetraNode >.

Definition at line 735 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ doImport() [1/2]

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::doImport ( const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > & source,
const Import< LocalOrdinal, GlobalOrdinal, Node > & importer,
CombineMode CM )
inlinevirtual

◆ doExport() [1/2]

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::doExport ( const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > & dest,
const Import< LocalOrdinal, GlobalOrdinal, Node > & importer,
CombineMode CM )
inline

Export.

Definition at line 742 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ doImport() [2/2]

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::doImport ( const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > & source,
const Export< LocalOrdinal, GlobalOrdinal, Node > & exporter,
CombineMode CM )
inline

Import (using an Exporter).

Definition at line 746 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ doExport() [2/2]

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::doExport ( const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > & dest,
const Export< LocalOrdinal, GlobalOrdinal, Node > & exporter,
CombineMode CM )
inlinevirtual

Export (using an Importer).

Implements Xpetra::DistObject< int, int, int, EpetraNode >.

Definition at line 750 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getTpetra_CrsGraph()

RCP< const Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getTpetra_CrsGraph ( ) const
inline

Get the underlying Tpetra graph.

Definition at line 764 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getLocalGraphHost()

Xpetra::CrsGraph< int, int, EpetraNode >::local_graph_type::HostMirror Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getLocalGraphHost ( ) const
virtual

Access the local KokkosSparse::StaticCrsGraph data for host use.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 285 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getLocalGraphDevice()

Xpetra::CrsGraph< int, int, EpetraNode >::local_graph_type Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getLocalGraphDevice ( ) const
virtual

Access the local KokkosSparse::StaticCrsGraph data for device use.

Implements Xpetra::CrsGraph< int, int, EpetraNode >.

Definition at line 288 of file Xpetra_TpetraCrsGraph_def.hpp.

◆ getLocalDiagOffsets()

void Xpetra::TpetraCrsGraph< int, int, EpetraNode >::getLocalDiagOffsets ( const Kokkos::View< size_t *, typename EpetraNode::device_type, Kokkos::MemoryUnmanaged > & offsets) const

Get offsets of the diagonal entries in the matrix.

Definition at line 291 of file Xpetra_TpetraCrsGraph_def.hpp.

Member Data Documentation

◆ graph_

RCP<Tpetra::CrsGraph<int, int, EpetraNode> > Xpetra::TpetraCrsGraph< int, int, EpetraNode >::graph_
private

Definition at line 353 of file Xpetra_TpetraCrsGraph_decl.hpp.


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