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

#include <Xpetra_EpetraCrsGraph.hpp>

Inheritance diagram for Xpetra::EpetraCrsGraphT< int, EpetraNode >:
Xpetra::CrsGraph< int, int, 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, int, 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 fillComplete (const RCP< const Map< int, int, EpetraNode > > &domainMap, const RCP< const Map< int, int, EpetraNode > > &rangeMap, const RCP< ParameterList > &params=null)=0
 Signal that data entry is complete, specifying domain and range maps. More...
 
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. 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 int GlobalOrdinal
 
typedef EpetraNode Node
 
typedef Map< LocalOrdinal,
GlobalOrdinal, Node
map_type
 The specialization of Map used by this class. More...
 
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
 

Private Attributes

RCP< Epetra_CrsGraph > graph_
 

Constructor/Destructor Methods

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

Insertion/Removal Methods

void insertGlobalIndices (GlobalOrdinal globalRow, const ArrayView< const GlobalOrdinal > &indices)
 Insert global indices into the graph. More...
 
void insertLocalIndices (const LocalOrdinal localRow, const ArrayView< const LocalOrdinal > &indices)
 Insert local indices into the graph. More...
 
void removeLocalIndices (LocalOrdinal localRow)
 Remove all graph indices from the specified local row. More...
 
void allocateAllIndices (size_t numNonZeros, ArrayRCP< size_t > &rowptr, ArrayRCP< LocalOrdinal > &colind)
 Allocates and returns ArrayRCPs of the Crs arrays — This is an Xpetra-only routine. More...
 
void setAllIndices (const ArrayRCP< size_t > &rowptr, const ArrayRCP< LocalOrdinal > &colind)
 Sets the 1D pointer arrays of the graph. More...
 
void getAllIndices (ArrayRCP< const size_t > &rowptr, ArrayRCP< const LocalOrdinal > &colind) const
 Gets the 1D pointer arrays of the graph. More...
 

Transformational Methods

void fillComplete (const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &domainMap, const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &rangeMap, const RCP< ParameterList > &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< 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. 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::HostMirror getLocalGraphHost () const
 Get the local graph. More...
 
local_graph_type getLocalGraphDevice () const
 
void getLocalDiagOffsets (const Kokkos::View< size_t *, typename Node::device_type, Kokkos::MemoryUnmanaged > &offsets) const
 
void computeGlobalConstants ()
 Force the computation of global constants if we don't have them. 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=Teuchos::Describable::verbLevel_default) const
 Print the object with some verbosity level to an FancyOStream object. More...
 

Xpetra specific

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

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
 

Detailed Description

template<>
class Xpetra::EpetraCrsGraphT< int, EpetraNode >

Definition at line 357 of file Xpetra_EpetraCrsGraph.hpp.

Member Typedef Documentation

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

Definition at line 359 of file Xpetra_EpetraCrsGraph.hpp.

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

Definition at line 360 of file Xpetra_EpetraCrsGraph.hpp.

Definition at line 361 of file Xpetra_EpetraCrsGraph.hpp.

The specialization of Map used by this class.

Definition at line 364 of file Xpetra_EpetraCrsGraph.hpp.

typedef node_type::execution_space Xpetra::EpetraCrsGraphT< int, EpetraNode >::execution_space
private

Definition at line 369 of file Xpetra_EpetraCrsGraph.hpp.

Constructor & Destructor Documentation

Xpetra::EpetraCrsGraphT< int, EpetraNode >::EpetraCrsGraphT ( const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &  rowMap)
inline

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

Definition at line 377 of file Xpetra_EpetraCrsGraph.hpp.

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

Constructor specifying fixed number of entries for each row.

Definition at line 381 of file Xpetra_EpetraCrsGraph.hpp.

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

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

Definition at line 389 of file Xpetra_EpetraCrsGraph.hpp.

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

Definition at line 394 of file Xpetra_EpetraCrsGraph.hpp.

Xpetra::EpetraCrsGraphT< int, EpetraNode >::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 400 of file Xpetra_EpetraCrsGraph.hpp.

Xpetra::EpetraCrsGraphT< int, EpetraNode >::EpetraCrsGraphT ( const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &  ,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &  ,
const typename local_graph_type::row_map_type &  ,
const typename local_graph_type::entries_type::non_const_type &  ,
const RCP< Teuchos::ParameterList > &  = Teuchos::null 
)
inline

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

Definition at line 421 of file Xpetra_EpetraCrsGraph.hpp.

Xpetra::EpetraCrsGraphT< int, EpetraNode >::EpetraCrsGraphT ( const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &  ,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &  ,
const local_graph_type ,
const RCP< Teuchos::ParameterList > &  = Teuchos::null 
)
inline

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

Definition at line 431 of file Xpetra_EpetraCrsGraph.hpp.

Xpetra::EpetraCrsGraphT< int, EpetraNode >::EpetraCrsGraphT ( const local_graph_type ,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &  ,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &  ,
const Teuchos::RCP< const map_type > &  = Teuchos::null,
const Teuchos::RCP< const map_type > &  = Teuchos::null,
const RCP< Teuchos::ParameterList > &  = Teuchos::null 
)
inline

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

Definition at line 440 of file Xpetra_EpetraCrsGraph.hpp.

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

Destructor.

Definition at line 452 of file Xpetra_EpetraCrsGraph.hpp.

Xpetra::EpetraCrsGraphT< int, EpetraNode >::EpetraCrsGraphT ( const Teuchos::RCP< Epetra_CrsGraph > &  graph)
inline

EpetraCrsGraphT constructor to wrap a Epetra_CrsGraph object.

Definition at line 923 of file Xpetra_EpetraCrsGraph.hpp.

Member Function Documentation

void Xpetra::EpetraCrsGraphT< 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 460 of file Xpetra_EpetraCrsGraph.hpp.

void Xpetra::EpetraCrsGraphT< 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 468 of file Xpetra_EpetraCrsGraph.hpp.

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

Remove all graph indices from the specified local row.

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

Definition at line 476 of file Xpetra_EpetraCrsGraph.hpp.

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

Allocates and returns ArrayRCPs of the Crs arrays — This is an Xpetra-only routine.

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

Definition at line 483 of file Xpetra_EpetraCrsGraph.hpp.

void Xpetra::EpetraCrsGraphT< 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 504 of file Xpetra_EpetraCrsGraph.hpp.

void Xpetra::EpetraCrsGraphT< 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 526 of file Xpetra_EpetraCrsGraph.hpp.

void Xpetra::EpetraCrsGraphT< int, EpetraNode >::fillComplete ( const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &  domainMap,
const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node >> &  rangeMap,
const RCP< ParameterList > &  params = null 
)
inline

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

Definition at line 552 of file Xpetra_EpetraCrsGraph.hpp.

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

Signal that data entry is complete.

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

Definition at line 562 of file Xpetra_EpetraCrsGraph.hpp.

void Xpetra::EpetraCrsGraphT< int, EpetraNode >::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 
)
inline

Expert version of fillComplete.

Definition at line 573 of file Xpetra_EpetraCrsGraph.hpp.

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

Returns the communicator.

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

Definition at line 592 of file Xpetra_EpetraCrsGraph.hpp.

RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> > Xpetra::EpetraCrsGraphT< 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 598 of file Xpetra_EpetraCrsGraph.hpp.

RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> > Xpetra::EpetraCrsGraphT< 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 604 of file Xpetra_EpetraCrsGraph.hpp.

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

Returns the Map associated with the domain of this graph.

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

Definition at line 610 of file Xpetra_EpetraCrsGraph.hpp.

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

Returns the Map associated with the domain of this graph.

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

Definition at line 616 of file Xpetra_EpetraCrsGraph.hpp.

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

Returns the importer associated with this graph.

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

Definition at line 622 of file Xpetra_EpetraCrsGraph.hpp.

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

Returns the exporter associated with this graph.

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

Definition at line 628 of file Xpetra_EpetraCrsGraph.hpp.

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

Returns the number of global rows in the graph.

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

Definition at line 634 of file Xpetra_EpetraCrsGraph.hpp.

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

Returns the number of global columns in the graph.

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

Definition at line 640 of file Xpetra_EpetraCrsGraph.hpp.

size_t Xpetra::EpetraCrsGraphT< 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 646 of file Xpetra_EpetraCrsGraph.hpp.

size_t Xpetra::EpetraCrsGraphT< 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 652 of file Xpetra_EpetraCrsGraph.hpp.

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

Returns the index base for global indices for this graph.

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

Definition at line 658 of file Xpetra_EpetraCrsGraph.hpp.

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

Returns the global number of entries in the graph.

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

Definition at line 664 of file Xpetra_EpetraCrsGraph.hpp.

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

Returns the local number of entries in the graph.

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

Definition at line 670 of file Xpetra_EpetraCrsGraph.hpp.

size_t Xpetra::EpetraCrsGraphT< 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 676 of file Xpetra_EpetraCrsGraph.hpp.

size_t Xpetra::EpetraCrsGraphT< 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 682 of file Xpetra_EpetraCrsGraph.hpp.

size_t Xpetra::EpetraCrsGraphT< 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 688 of file Xpetra_EpetraCrsGraph.hpp.

size_t Xpetra::EpetraCrsGraphT< 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 694 of file Xpetra_EpetraCrsGraph.hpp.

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

Maximum number of entries in all rows over all processes.

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

Definition at line 700 of file Xpetra_EpetraCrsGraph.hpp.

size_t Xpetra::EpetraCrsGraphT< 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 706 of file Xpetra_EpetraCrsGraph.hpp.

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

Whether the graph has a column Map.

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

Definition at line 712 of file Xpetra_EpetraCrsGraph.hpp.

bool Xpetra::EpetraCrsGraphT< 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 718 of file Xpetra_EpetraCrsGraph.hpp.

bool Xpetra::EpetraCrsGraphT< 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 724 of file Xpetra_EpetraCrsGraph.hpp.

bool Xpetra::EpetraCrsGraphT< 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 730 of file Xpetra_EpetraCrsGraph.hpp.

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

Returns true if storage has been optimized.

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

Definition at line 736 of file Xpetra_EpetraCrsGraph.hpp.

void Xpetra::EpetraCrsGraphT< 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 742 of file Xpetra_EpetraCrsGraph.hpp.

void Xpetra::EpetraCrsGraphT< 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 757 of file Xpetra_EpetraCrsGraph.hpp.

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

Definition at line 772 of file Xpetra_EpetraCrsGraph.hpp.

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

Definition at line 820 of file Xpetra_EpetraCrsGraph.hpp.

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

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

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

Definition at line 831 of file Xpetra_EpetraCrsGraph.hpp.

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

Return a simple one-line description of this object.

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

Definition at line 839 of file Xpetra_EpetraCrsGraph.hpp.

void Xpetra::EpetraCrsGraphT< int, EpetraNode >::describe ( Teuchos::FancyOStream &  out,
const Teuchos::EVerbosityLevel  = 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 845 of file Xpetra_EpetraCrsGraph.hpp.

Teuchos::RCP<const Map<LocalOrdinal, GlobalOrdinal, Node> > Xpetra::EpetraCrsGraphT< int, 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 861 of file Xpetra_EpetraCrsGraph.hpp.

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

Import.

Definition at line 867 of file Xpetra_EpetraCrsGraph.hpp.

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

Export.

Definition at line 880 of file Xpetra_EpetraCrsGraph.hpp.

void Xpetra::EpetraCrsGraphT< 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 893 of file Xpetra_EpetraCrsGraph.hpp.

void Xpetra::EpetraCrsGraphT< int, 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 906 of file Xpetra_EpetraCrsGraph.hpp.

RCP<const Epetra_CrsGraph> Xpetra::EpetraCrsGraphT< int, EpetraNode >::getEpetra_CrsGraph ( ) const
inline

Get the underlying Epetra graph.

Definition at line 929 of file Xpetra_EpetraCrsGraph.hpp.

Member Data Documentation

RCP<Epetra_CrsGraph> Xpetra::EpetraCrsGraphT< int, EpetraNode >::graph_
private

Definition at line 934 of file Xpetra_EpetraCrsGraph.hpp.


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