Xpetra  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Xpetra::TpetraCrsGraph< int, long long, EpetraNode > Class Template Reference

#include <Xpetra_TpetraCrsGraph_def.hpp>

Inheritance diagram for Xpetra::TpetraCrsGraph< int, long long, EpetraNode >:
Xpetra::CrsGraph< int, long long, EpetraNode > Xpetra::DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node >

Public Member Functions

Teuchos::RCP< const Map
< LocalOrdinal, GlobalOrdinal,
Node > > 
getMap () const
 Implements DistObject interface. More...
 
void doImport (const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Import. More...
 
void doExport (const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &dest, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Export. More...
 
void doImport (const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Import (using an Exporter). More...
 
void doExport (const DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Node > &dest, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Export (using an Importer). More...
 
- Public Member Functions inherited from Xpetra::CrsGraph< int, long long, EpetraNode >
virtual void getLocalDiagOffsets (const Kokkos::View< size_t *, device_type, Kokkos::MemoryUnmanaged > &offsets) const =0
 Get offsets of the diagonal entries in the matrix. More...
 
virtual ~CrsGraph ()
 Destructor. More...
 
virtual void expertStaticFillComplete (const RCP< const Map< int, long long, EpetraNode > > &domainMap, const RCP< const Map< int, long long, EpetraNode > > &rangeMap, const RCP< const Import< int, long long, EpetraNode > > &importer=null, const RCP< const Export< int, long long, EpetraNode > > &exporter=null, const RCP< Teuchos::ParameterList > &params=null)=0
 Expert version of fillComplete. More...
 
- Public Member Functions inherited from Xpetra::DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node >
virtual ~DistObject ()
 Destructor. More...
 
virtual void doImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)=0
 Import data into this object using an Import object ("forward mode"). More...
 
virtual void beginImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Import data into this object using an Import object ("forward mode"). More...
 
virtual void endImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Import data into this object using an Import object ("forward mode"). More...
 
virtual void doExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)=0
 Export data into this object using an Export object ("forward mode"). More...
 
virtual void beginExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Export data into this object using an Export object ("forward mode"). More...
 
virtual void endExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Export data into this object using an Export object ("forward mode"). More...
 
virtual void doImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)=0
 Import data into this object using an Export object ("reverse mode"). More...
 
virtual void beginImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Import data into this object using an Export object ("reverse mode"). More...
 
virtual void endImport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Export< LocalOrdinal, GlobalOrdinal, Node > &exporter, CombineMode CM)
 Import data into this object using an Export object ("reverse mode"). More...
 
virtual void doExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)=0
 Export data into this object using an Import object ("reverse mode"). More...
 
virtual void beginExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Export data into this object using an Import object ("reverse mode"). More...
 
virtual void endExport (const DistObject< Packet, LocalOrdinal, GlobalOrdinal, Node > &source, const Import< LocalOrdinal, GlobalOrdinal, Node > &importer, CombineMode CM)
 Export data into this object using an Import object ("reverse mode"). More...
 

Private Types

typedef int LocalOrdinal
 
typedef long long GlobalOrdinal
 
typedef EpetraNode Node
 
typedef TpetraCrsGraph
< LocalOrdinal, GlobalOrdinal,
Node
TpetraCrsGraphClass
 
typedef Map< LocalOrdinal,
GlobalOrdinal, Node
map_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. More...
 
 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. More...
 
 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. More...
 
 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. More...
 
 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. More...
 
 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. More...
 
 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. More...
 
 TpetraCrsGraph (const Teuchos::RCP< const map_type > &rowMap, const Teuchos::RCP< const map_type > &colMap, const Teuchos::ArrayRCP< size_t > &rowPointers, const Teuchos::ArrayRCP< LocalOrdinal > &columnIndices, const Teuchos::RCP< Teuchos::ParameterList > &params)
 Constructor specifying column Map and arrays containing the graph in sorted, local ids. More...
 
virtual ~TpetraCrsGraph ()
 Destructor. More...
 

Insertion/Removal Methods

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

Transformational Methods

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

Methods implementing RowGraph.

RCP< const Comm< int > > getComm () const
 Returns the communicator. More...
 
RCP< const Map< LocalOrdinal,
GlobalOrdinal, Node > > 
getRowMap () const
 Returns the Map that describes the row distribution in this graph. More...
 
RCP< const Map< LocalOrdinal,
GlobalOrdinal, Node > > 
getColMap () const
 Returns the Map that describes the column distribution in this graph. More...
 
RCP< const Map< LocalOrdinal,
GlobalOrdinal, Node > > 
getDomainMap () const
 Returns the Map associated with the domain of this graph. More...
 
RCP< const Map< LocalOrdinal,
GlobalOrdinal, Node > > 
getRangeMap () const
 Returns the Map associated with the domain of this graph. More...
 
RCP< const Import
< LocalOrdinal, GlobalOrdinal,
Node > > 
getImporter () const
 Returns the importer associated with this graph. More...
 
RCP< const Export
< LocalOrdinal, GlobalOrdinal,
Node > > 
getExporter () const
 Returns the exporter associated with this graph. More...
 
global_size_t getGlobalNumRows () const
 Returns the number of global rows in the graph. More...
 
global_size_t getGlobalNumCols () const
 Returns the number of global columns in the graph. More...
 
size_t getLocalNumRows () const
 Returns the number of graph rows owned on the calling node. More...
 
size_t getLocalNumCols () 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 getLocalNumEntries () const
 Returns the local number of entries in the graph. More...
 
size_t getNumEntriesInGlobalRow (GlobalOrdinal globalRow) const
 Returns the current number of entries on this node in the specified global row. More...
 
size_t getNumEntriesInLocalRow (LocalOrdinal localRow) const
 Returns the current number of entries on this node in the specified local row. More...
 
size_t getNumAllocatedEntriesInGlobalRow (GlobalOrdinal globalRow) const
 Returns the current number of allocated entries for this node in the specified global row . More...
 
size_t getNumAllocatedEntriesInLocalRow (LocalOrdinal localRow) const
 Returns the current number of allocated entries on this node in the specified local row. More...
 
size_t getGlobalMaxNumRowEntries () const
 Maximum number of entries in all rows over all processes. More...
 
size_t getLocalMaxNumRowEntries () const
 Maximum number of entries in all rows owned by the calling process. More...
 
bool hasColMap () const
 Whether the graph has a column Map. More...
 
bool isLocallyIndexed () const
 Whether column indices are stored using local indices on the calling process. More...
 
bool isGloballyIndexed () const
 Whether column indices are stored using global indices on the calling process. More...
 
bool isFillComplete () const
 Whether fillComplete() has been called and the graph is in compute mode. More...
 
bool isStorageOptimized () const
 Returns true if storage has been optimized. More...
 
void getGlobalRowView (GlobalOrdinal GlobalRow, ArrayView< const GlobalOrdinal > &Indices) const
 Return a const, nonpersisting view of global indices in the given row. More...
 
void getLocalRowView (LocalOrdinal LocalRow, ArrayView< const LocalOrdinal > &indices) const
 Return a const, nonpersisting view of local indices in the given row. More...
 
local_graph_type getLocalGraphDevice () const
 
void getLocalDiagOffsets (const Kokkos::View< size_t *, typename Node::device_type, Kokkos::MemoryUnmanaged > &offsets) const
 
local_graph_type::HostMirror getLocalGraphHost () const
 Get the local graph. More...
 
void computeGlobalConstants ()
 Dummy implementation for computeGlobalConstants. More...
 

Overridden from Teuchos::Describable

std::string description () const
 Return a simple one-line description of this object. More...
 
void describe (Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel=Teuchos::Describable::verbLevel_default) const
 Print the object with some verbosity level to an FancyOStream object. More...
 

Advanced methods, at increased risk of deprecation.

ArrayRCP< const size_t > getNodeRowPtrs () const
 Get an ArrayRCP of the row-offsets. More...
 

Xpetra specific

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

Additional Inherited Members

- Public Types inherited from Xpetra::CrsGraph< int, long long, EpetraNode >
typedef int local_ordinal_type
 
typedef long long global_ordinal_type
 
typedef EpetraNode node_type
 
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
 

Detailed Description

template<>
class Xpetra::TpetraCrsGraph< int, long long, EpetraNode >

Definition at line 811 of file Xpetra_TpetraCrsGraph_def.hpp.

Member Typedef Documentation

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

Definition at line 813 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Definition at line 814 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Definition at line 815 of file Xpetra_TpetraCrsGraph_def.hpp.

Definition at line 819 of file Xpetra_TpetraCrsGraph_def.hpp.

Constructor & Destructor Documentation

Xpetra::TpetraCrsGraph< int, long long, 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 826 of file Xpetra_TpetraCrsGraph_def.hpp.

Xpetra::TpetraCrsGraph< int, long long, 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 831 of file Xpetra_TpetraCrsGraph_def.hpp.

Xpetra::TpetraCrsGraph< int, long long, 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 836 of file Xpetra_TpetraCrsGraph_def.hpp.

Xpetra::TpetraCrsGraph< int, long long, 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 841 of file Xpetra_TpetraCrsGraph_def.hpp.

Xpetra::TpetraCrsGraph< int, long long, 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 864 of file Xpetra_TpetraCrsGraph_def.hpp.

Xpetra::TpetraCrsGraph< int, long long, 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 893 of file Xpetra_TpetraCrsGraph_def.hpp.

Xpetra::TpetraCrsGraph< int, long long, 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 927 of file Xpetra_TpetraCrsGraph_def.hpp.

Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::TpetraCrsGraph ( const Teuchos::RCP< const map_type > &  rowMap,
const Teuchos::RCP< const map_type > &  colMap,
const Teuchos::ArrayRCP< size_t > &  rowPointers,
const Teuchos::ArrayRCP< LocalOrdinal > &  columnIndices,
const Teuchos::RCP< Teuchos::ParameterList > &  params 
)
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 958 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Destructor.

Definition at line 970 of file Xpetra_TpetraCrsGraph_def.hpp.

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

TpetraCrsGraph constructor to wrap a Tpetra::CrsGraph object.

Definition at line 1168 of file Xpetra_TpetraCrsGraph_def.hpp.

Member Function Documentation

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

Insert global indices into the graph.

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

Definition at line 978 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Insert local indices into the graph.

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

Definition at line 981 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Remove all graph indices from the specified local row.

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

Definition at line 984 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Definition at line 987 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Sets the 1D pointer arrays of the graph.

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

Definition at line 990 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Definition at line 993 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Definition at line 1001 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Signal that data entry is complete.

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

Definition at line 1004 of file Xpetra_TpetraCrsGraph_def.hpp.

void Xpetra::TpetraCrsGraph< int, long long, 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 1007 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Returns the communicator.

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

Definition at line 1019 of file Xpetra_TpetraCrsGraph_def.hpp.

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

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

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

Definition at line 1022 of file Xpetra_TpetraCrsGraph_def.hpp.

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

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

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

Definition at line 1025 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Returns the Map associated with the domain of this graph.

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

Definition at line 1028 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Returns the Map associated with the domain of this graph.

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

Definition at line 1031 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Returns the importer associated with this graph.

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

Definition at line 1034 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Returns the exporter associated with this graph.

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

Definition at line 1037 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Returns the number of global rows in the graph.

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

Definition at line 1040 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Returns the number of global columns in the graph.

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

Definition at line 1043 of file Xpetra_TpetraCrsGraph_def.hpp.

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

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

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

Definition at line 1046 of file Xpetra_TpetraCrsGraph_def.hpp.

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

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

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

Definition at line 1049 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Returns the index base for global indices for this graph.

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

Definition at line 1052 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Returns the global number of entries in the graph.

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

Definition at line 1055 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Returns the local number of entries in the graph.

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

Definition at line 1058 of file Xpetra_TpetraCrsGraph_def.hpp.

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

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

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

Definition at line 1061 of file Xpetra_TpetraCrsGraph_def.hpp.

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

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

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

Definition at line 1064 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Definition at line 1067 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Definition at line 1070 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Maximum number of entries in all rows over all processes.

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

Definition at line 1073 of file Xpetra_TpetraCrsGraph_def.hpp.

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

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

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

Definition at line 1076 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Whether the graph has a column Map.

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

Definition at line 1079 of file Xpetra_TpetraCrsGraph_def.hpp.

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

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

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

Definition at line 1082 of file Xpetra_TpetraCrsGraph_def.hpp.

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

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

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

Definition at line 1085 of file Xpetra_TpetraCrsGraph_def.hpp.

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

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

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

Definition at line 1088 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Returns true if storage has been optimized.

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

Definition at line 1091 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Definition at line 1094 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Definition at line 1097 of file Xpetra_TpetraCrsGraph_def.hpp.

local_graph_type Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getLocalGraphDevice ( ) const
inlinevirtual
void Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::getLocalDiagOffsets ( const Kokkos::View< size_t *, typename Node::device_type, Kokkos::MemoryUnmanaged > &  offsets) const
inline

Definition at line 1105 of file Xpetra_TpetraCrsGraph_def.hpp.

local_graph_type::HostMirror Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::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, long long, EpetraNode >.

Definition at line 1110 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Dummy implementation for computeGlobalConstants.

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

Definition at line 1117 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Return a simple one-line description of this object.

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

Definition at line 1125 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Definition at line 1128 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Get an ArrayRCP of the row-offsets.

Definition at line 1136 of file Xpetra_TpetraCrsGraph_def.hpp.

Teuchos::RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> > Xpetra::TpetraCrsGraph< int, long long, EpetraNode >::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 1144 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Import.

Definition at line 1147 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Export.

Definition at line 1151 of file Xpetra_TpetraCrsGraph_def.hpp.

void Xpetra::TpetraCrsGraph< int, long long, 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 1155 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Export (using an Importer).

Definition at line 1159 of file Xpetra_TpetraCrsGraph_def.hpp.

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

Get the underlying Tpetra graph.

Definition at line 1173 of file Xpetra_TpetraCrsGraph_def.hpp.


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