Tpetra Matrix/Vector Services  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Types | Protected Member Functions | Protected Attributes
Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > Class Template Reference

Partial specialization of CrsGraph for the new Kokkos Node types. More...

#include <Tpetra_KokkosRefactor_CrsGraph_decl.hpp>

Inheritance diagram for Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef LocalOrdinal local_ordinal_type
 This class' first template parameter; the type of local indices.
typedef GlobalOrdinal global_ordinal_type
 This class' second template parameter; the type of global indices.
typedef DeviceType device_type
 This class' third template parameter; the Kokkos device type.
typedef
Kokkos::Compat::KokkosDeviceWrapperNode
< DeviceType > 
node_type
 The Kokkos Node type used by this class.
typedef Tpetra::Map
< LocalOrdinal, GlobalOrdinal,
node_type
map_type
 The Map specialization used by this class.
typedef Tpetra::Import
< LocalOrdinal, GlobalOrdinal,
node_type
import_type
 The Import specialization used by this class.
typedef Tpetra::Export
< LocalOrdinal, GlobalOrdinal,
node_type
export_type
 The Export specialization used by this class.
Typedefs
typedef GlobalOrdinal packet_type
 The type of each datum being sent or received in an Import or Export.

Public Member Functions

Constructor/Destructor Methods
 CrsGraph (const Teuchos::RCP< const map_type > &rowMap, size_t maxNumEntriesPerRow, ProfileType pftype=DynamicProfile, const Teuchos::RCP< Teuchos::ParameterList > &params=Teuchos::null)
 Constructor specifying a single upper bound for the number of entries in all rows on the calling process.
 CrsGraph (const Teuchos::RCP< const map_type > &rowMap, const Kokkos::DualView< const size_t *, device_type > &numEntPerRow, const ProfileType pftype=DynamicProfile, const Teuchos::RCP< Teuchos::ParameterList > &params=Teuchos::null)
 Constructor specifying a (possibly different) upper bound for the number of entries in each row.
 CrsGraph (const Teuchos::RCP< const map_type > &rowMap, const Teuchos::ArrayRCP< const size_t > &numEntPerRow, const ProfileType pftype=DynamicProfile, const Teuchos::RCP< Teuchos::ParameterList > &params=Teuchos::null)
 Constructor specifying a (possibly different) upper bound for the number of entries in each row (legacy KokkosClassic version).
 CrsGraph (const Teuchos::RCP< const map_type > &rowMap, const Teuchos::RCP< const map_type > &colMap, const size_t maxNumEntriesPerRow, const ProfileType pftype=DynamicProfile, const Teuchos::RCP< Teuchos::ParameterList > &params=null)
 Constructor specifying column Map and a single upper bound for the number of entries in all rows on the calling process.
 CrsGraph (const Teuchos::RCP< const map_type > &rowMap, const Teuchos::RCP< const map_type > &colMap, const Kokkos::DualView< const size_t *, device_type > &numEntPerRow, ProfileType pftype=DynamicProfile, const Teuchos::RCP< Teuchos::ParameterList > &params=null)
 Constructor specifying column Map and number of entries in each row.
 CrsGraph (const Teuchos::RCP< const map_type > &rowMap, const Teuchos::RCP< const map_type > &colMap, const Teuchos::ArrayRCP< const size_t > &numEntPerRow, ProfileType pftype=DynamicProfile, const Teuchos::RCP< Teuchos::ParameterList > &params=null)
 Constructor specifying column Map and number of entries in each row (legacy KokkosClassic version).
 CrsGraph (const Teuchos::RCP< const map_type > &rowMap, const Teuchos::RCP< const map_type > &colMap, const t_RowPtrs &rowPointers, const t_LocalOrdinal_1D &columnIndices, const Teuchos::RCP< Teuchos::ParameterList > &params=null)
 Constructor specifying column Map and arrays containing the graph in sorted, local ids.
 CrsGraph (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=null)
 Constructor specifying column Map and arrays containing the graph in sorted, local ids.
 CrsGraph (const Teuchos::RCP< const map_type > &rowMap, const Teuchos::RCP< const map_type > &colMap, const LocalStaticCrsGraphType &lclGraph, const Teuchos::RCP< Teuchos::ParameterList > &params)
 Constructor specifying column Map and a local (sorted) graph, which the resulting CrsGraph views.
template<class Node2 >
Teuchos::RCP< CrsGraph
< LocalOrdinal, GlobalOrdinal,
Node2 > > 
clone (const Teuchos::RCP< Node2 > &node2, const Teuchos::RCP< Teuchos::ParameterList > &params=Teuchos::null) const
 Create a cloned CrsGraph for a different Node type.
virtual ~CrsGraph ()
 Destructor.
Implementation of Teuchos::ParameterListAcceptor
void setParameterList (const Teuchos::RCP< Teuchos::ParameterList > &params)
 Set the given list of parameters (must be nonnull).
Teuchos::RCP< const ParameterList > getValidParameters () const
 Default parameter list suitable for validation.
Insertion/Removal Methods
void insertGlobalIndices (GlobalOrdinal globalRow, const Teuchos::ArrayView< const GlobalOrdinal > &indices)
 Insert global indices into the graph.
void insertLocalIndices (const LocalOrdinal localRow, const Teuchos::ArrayView< const LocalOrdinal > &indices)
 Insert local indices into the graph.
void removeLocalIndices (LocalOrdinal localRow)
 Remove all graph indices from the specified local row.
Transformational Methods
void globalAssemble ()
 Communicate non-local contributions to other processes.
void resumeFill (const Teuchos::RCP< Teuchos::ParameterList > &params=Teuchos::null)
void fillComplete (const Teuchos::RCP< const map_type > &domainMap, const Teuchos::RCP< const map_type > &rangeMap, const Teuchos::RCP< Teuchos::ParameterList > &params=Teuchos::null)
 Signal that data entry is complete, specifying domain and range maps.
void fillComplete (const Teuchos::RCP< Teuchos::ParameterList > &params=Teuchos::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_type > &importer=Teuchos::null, const Teuchos::RCP< const export_type > &exporter=Teuchos::null, const Teuchos::RCP< Teuchos::ParameterList > &params=Teuchos::null)
 Perform a fillComplete on a graph that already has data, via setAllIndices().
Methods implementing RowGraph.
Teuchos::RCP< const Comm< int > > getComm () const
 Returns the communicator.
Teuchos::RCP< node_typegetNode () const
 Returns the underlying node.
Teuchos::RCP< const map_typegetRowMap () const
 Returns the Map that describes the row distribution in this graph.
Teuchos::RCP< const map_typegetColMap () const
 Returns the Map that describes the column distribution in this graph.
Teuchos::RCP< const map_typegetDomainMap () const
 Returns the Map associated with the domain of this graph.
Teuchos::RCP< const map_typegetRangeMap () const
 Returns the Map associated with the domain of this graph.
Teuchos::RCP< const import_typegetImporter () const
 Returns the importer associated with this graph.
Teuchos::RCP< const export_typegetExporter () 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 getNodeNumRows () const
 Returns the number of graph rows owned on the calling node.
size_t getNodeNumCols () 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 getNodeNumEntries () 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 getNodeAllocationSize () const
 Returns the total number of indices allocated for the graph, across all rows on this node.
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.
global_size_t getGlobalNumDiags () const
 Returns the number of global diagonal entries, based on global row/column index comparisons.
size_t getNodeNumDiags () const
 Returns the number of local diagonal entries, based on global row/column index comparisons.
size_t getGlobalMaxNumRowEntries () const
 Maximum number of entries in all rows over all processes.
size_t getNodeMaxNumRowEntries () const
 Maximum number of entries in all rows owned by the calling process.
bool hasColMap () const
 Whether the graph has a column Map.
bool isLowerTriangular () const
 Whether the graph is locally lower triangular.
bool isUpperTriangular () const
 Whether the graph is locally upper triangular.
bool isLocallyIndexed () const
 If graph indices are in the local range, this function returns true. Otherwise, this function returns false. */.
bool isGloballyIndexed () const
 If graph indices are in the global range, this function returns true. Otherwise, this function returns false. */.
bool isFillComplete () const
 Returns true if fillComplete() has been called and the graph is in compute mode.
bool isFillActive () const
 Returns true if resumeFill() has been called and the graph is in edit mode.
bool isSorted () const
 Whether graph indices in all rows are known to be sorted.
bool isStorageOptimized () const
 Returns true if storage has been optimized.
ProfileType getProfileType () const
 Returns true if the graph was allocated with static data structures.
void getGlobalRowCopy (GlobalOrdinal GlobalRow, const Teuchos::ArrayView< GlobalOrdinal > &Indices, size_t &NumIndices) const
 Get a copy of the given row, using global indices.
void getLocalRowCopy (LocalOrdinal LocalRow, const Teuchos::ArrayView< LocalOrdinal > &indices, size_t &NumIndices) const
 Get a copy of the given row, using local indices.
void getGlobalRowView (GlobalOrdinal GlobalRow, Teuchos::ArrayView< const GlobalOrdinal > &Indices) const
 Extract a const, non-persisting view of global indices in a specified row of the graph.
void getLocalRowView (LocalOrdinal LocalRow, Teuchos::ArrayView< const LocalOrdinal > &indices) const
 Extract a const, non-persisting view of local indices in a specified row of the graph.
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 to the given output stream with given verbosity level.
Implementation of DistObject
virtual bool checkSizes (const SrcDistObject &source)
 Compare the source and target (this) objects for compatibility.
virtual void copyAndPermute (const SrcDistObject &source, size_t numSameIDs, const Teuchos::ArrayView< const LocalOrdinal > &permuteToLIDs, const Teuchos::ArrayView< const LocalOrdinal > &permuteFromLIDs)
 Perform copies and permutations that are local to this process.
virtual void packAndPrepare (const SrcDistObject &source, const Teuchos::ArrayView< const LocalOrdinal > &exportLIDs, Teuchos::Array< GlobalOrdinal > &exports, const Teuchos::ArrayView< size_t > &numPacketsPerLID, size_t &constantNumPackets, Distributor &distor)
 Perform any packing or preparation required for communication.
virtual void pack (const Teuchos::ArrayView< const LocalOrdinal > &exportLIDs, Teuchos::Array< GlobalOrdinal > &exports, const Teuchos::ArrayView< size_t > &numPacketsPerLID, size_t &constantNumPackets, Distributor &distor) const
 Pack this object's data for Import or Export.
virtual void unpackAndCombine (const Teuchos::ArrayView< const LocalOrdinal > &importLIDs, const Teuchos::ArrayView< const GlobalOrdinal > &imports, const Teuchos::ArrayView< size_t > &numPacketsPerLID, size_t constantNumPackets, Distributor &distor, CombineMode CM)
 Perform any unpacking and combining after communication.
Advanced methods, at increased risk of deprecation.
void getNumEntriesPerLocalRowUpperBound (Teuchos::ArrayRCP< const size_t > &boundPerLocalRow, size_t &boundForAllLocalRows, bool &boundSameForAllLocalRows) const
 Get an upper bound on the number of entries that can be stored in each row.
void setAllIndices (const t_RowPtrs &rowPointers, const t_LocalOrdinal_1D &columnIndices)
 Set the graph's data directly, using 1-D storage.
void setAllIndices (const Teuchos::ArrayRCP< size_t > &rowPointers, const Teuchos::ArrayRCP< LocalOrdinal > &columnIndices)
 Set the graph's data directly, using 1-D storage.
Teuchos::ArrayRCP< const size_t > getNodeRowPtrs () const
 Get an Teuchos::ArrayRCP of the row-offsets.
Teuchos::ArrayRCP< const
LocalOrdinal > 
getNodePackedIndices () const
 Get an Teuchos::ArrayRCP of the packed column-indices.
void replaceColMap (const Teuchos::RCP< const map_type > &newColMap)
 Replace the graph's current column Map with the given Map.
void reindexColumns (const Teuchos::RCP< const map_type > &newColMap, const Teuchos::RCP< const import_type > &newImport=Teuchos::null, const bool sortIndicesInEachRow=true)
 Reindex the column indices in place, and replace the column Map. Optionally, replace the Import object as well.
void replaceDomainMapAndImporter (const Teuchos::RCP< const map_type > &newDomainMap, const Teuchos::RCP< const import_type > &newImporter)
 Replace the current domain Map and Import with the given parameters.
virtual void removeEmptyProcessesInPlace (const Teuchos::RCP< const map_type > &newMap)
 Remove processes owning zero rows from the Maps and their communicator.
Public methods for redistributing data
void doImport (const SrcDistObject &source, const Import< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > &importer, CombineMode CM)
 Import data into this object using an Import object ("forward mode").
void doImport (const SrcDistObject &source, const Export< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > &exporter, CombineMode CM)
 Import data into this object using an Export object ("reverse mode").
void doExport (const SrcDistObject &source, const Export< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > &exporter, CombineMode CM)
 Export data into this object using an Export object ("forward mode").
void doExport (const SrcDistObject &source, const Import< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > &importer, CombineMode CM)
 Export data into this object using an Import object ("reverse mode").
Attribute accessor methods
bool isDistributed () const
 Whether this is a globally distributed object.
virtual Teuchos::RCP< const
Map< LocalOrdinal,
GlobalOrdinal,
Kokkos::Compat::KokkosDeviceWrapperNode
< DeviceType > > > 
getMap () const
 The Map describing the parallel distribution of this object.
I/O methods
void print (std::ostream &os) const
 Print this object to the given output stream.

Protected Member Functions

void setDomainRangeMaps (const Teuchos::RCP< const map_type > &domainMap, const Teuchos::RCP< const map_type > &rangeMap)
RowInfo getRowInfo (const size_t myRow) const
 Get information about the locally owned row with local index myRow.
Teuchos::ArrayView< const
LocalOrdinal > 
getLocalView (const RowInfo rowinfo) const
 Get a const, nonowned, locally indexed view of the locally owned row myRow, such that rowinfo = getRowInfo(myRow).
Teuchos::ArrayView< LocalOrdinal > getLocalViewNonConst (const RowInfo rowinfo)
 Get a nonconst, nonowned, locally indexed view of the locally owned row myRow, such that rowinfo = getRowInfo(myRow).
Teuchos::ArrayView< const
GlobalOrdinal > 
getGlobalView (const RowInfo rowinfo) const
 Get a const, nonowned, globally indexed view of the locally owned row myRow, such that rowinfo = getRowInfo(myRow).
Teuchos::ArrayView< GlobalOrdinal > getGlobalViewNonConst (const RowInfo rowinfo)
 Get a nonconst, nonowned, globally indexed view of the locally owned row myRow, such that rowinfo = getRowInfo(myRow).
size_t findLocalIndex (RowInfo rowinfo, LocalOrdinal ind, size_t hint=0) const
 Find the column offset corresponding to the given (local) column index.
size_t findLocalIndex (RowInfo rowinfo, LocalOrdinal ind, Teuchos::ArrayView< const LocalOrdinal > colInds, size_t hint=0) const
size_t findGlobalIndex (RowInfo rowinfo, GlobalOrdinal ind, size_t hint=0) const
 Find the column offset corresponding to the given (global) column index.
LocalStaticCrsGraphType getLocalGraph_Kokkos () const
 Get the local graph.
bool hasRowInfo () const
 Whether it is correct to call getRowInfo().
void checkInternalState () const
 Throw an exception if the internal state is not consistent.
virtual size_t constantNumberOfPackets () const
 Whether the implementation's instance promises always to have a constant number of packets per LID, and if so, how many packets per LID there are.
virtual void doTransfer (const SrcDistObject &src, CombineMode CM, size_t numSameIDs, const Teuchos::ArrayView< const LocalOrdinal > &permuteToLIDs, const Teuchos::ArrayView< const LocalOrdinal > &permuteFromLIDs, const Teuchos::ArrayView< const LocalOrdinal > &remoteLIDs, const Teuchos::ArrayView< const LocalOrdinal > &exportLIDs, Distributor &distor, ReverseOption revOp)
 Redistribute data across memory images.
virtual void createViews () const
 Hook for creating a const view.
virtual void createViewsNonConst (KokkosClassic::ReadWriteOption rwo)
 Hook for creating a nonconst view.
virtual void releaseViews () const
 Hook for releasing views.
Methods governing changes between global and local indices
void makeColMap ()
 Make the graph's column Map, if it does not already have one.
void makeIndicesLocal ()
void makeImportExport ()
Methods for inserting indices or transforming values
template<ELocalGlobal lg>
size_t filterIndices (const SLocalGlobalNCViews &inds) const
template<class T >
size_t filterGlobalIndicesAndValues (const Teuchos::ArrayView< GlobalOrdinal > &ginds, const Teuchos::ArrayView< T > &vals) const
template<class T >
size_t filterLocalIndicesAndValues (const Teuchos::ArrayView< LocalOrdinal > &linds, const Teuchos::ArrayView< T > &vals) const
size_t insertIndices (const RowInfo &rowInfo, const SLocalGlobalViews &newInds, const ELocalGlobal lg, const ELocalGlobal I)
 Insert indices into the given row.
template<class Scalar >
void insertIndicesAndValues (const RowInfo &rowInfo, const SLocalGlobalViews &newInds, const Teuchos::ArrayView< Scalar > &oldRowVals, const Teuchos::ArrayView< const Scalar > &newRowVals, const ELocalGlobal lg, const ELocalGlobal I)
 Insert indices and their values into the given row.
void insertGlobalIndicesImpl (const LocalOrdinal myRow, const Teuchos::ArrayView< const GlobalOrdinal > &indices)
void insertLocalIndicesImpl (const LocalOrdinal myRow, const Teuchos::ArrayView< const LocalOrdinal > &indices)
void insertLocalIndicesFiltered (const LocalOrdinal localRow, const Teuchos::ArrayView< const LocalOrdinal > &indices)
 Like insertLocalIndices(), but with column Map filtering.
void insertGlobalIndicesFiltered (const GlobalOrdinal localRow, const Teuchos::ArrayView< const GlobalOrdinal > &indices)
 Like insertGlobalIndices(), but with column Map filtering.
template<class Scalar , class BinaryFunction >
LocalOrdinal transformLocalValues (RowInfo rowInfo, const Teuchos::ArrayView< Scalar > &rowVals, const Teuchos::ArrayView< const LocalOrdinal > &inds, const Teuchos::ArrayView< const Scalar > &newVals, BinaryFunction f) const
 Transform the given values using local indices.
template<class Scalar , class BinaryFunction >
LocalOrdinal transformGlobalValues (RowInfo rowInfo, const Teuchos::ArrayView< Scalar > &rowVals, const Teuchos::ArrayView< const GlobalOrdinal > &inds, const Teuchos::ArrayView< const Scalar > &newVals, BinaryFunction f) const
 Transform the given values using global indices.
Methods for sorting and merging column indices.
bool isMerged () const
 Whether duplicate column indices in each row have been merged.
void setLocallyModified ()
 Report that we made a local modification to its structure.
void sortAllIndices ()
 Sort the column indices in all the rows.
void sortRowIndices (const RowInfo rowinfo)
 Sort the column indices in the given row.
template<class Scalar >
void sortRowIndicesAndValues (const RowInfo rowinfo, const Teuchos::ArrayView< Scalar > &values)
 Sort the column indices and their values in the given row.
void mergeAllIndices ()
 Merge duplicate row indices in all of the rows.
void mergeRowIndices (RowInfo rowinfo)
 Merge duplicate row indices in the given row.
template<class Scalar >
void mergeRowIndicesAndValues (RowInfo rowinfo, const Teuchos::ArrayView< Scalar > &rowValues)
 Merge duplicate row indices in the given row, along with their corresponding values.

Protected Attributes

Teuchos::RCP< const map_typerowMap_
 The Map describing the distribution of rows of the graph.
Teuchos::RCP< const map_typecolMap_
 The Map describing the distribution of columns of the graph.
Teuchos::RCP< const map_typerangeMap_
 The Map describing the range of the (matrix corresponding to the) graph.
Teuchos::RCP< const map_typedomainMap_
 The Map describing the domain of the (matrix corresponding to the) graph.
Teuchos::RCP< const import_typeimporter_
 The Import from the domain Map to the column Map.
Teuchos::RCP< const export_typeexporter_
 The Export from the row Map to the range Map.
LocalStaticCrsGraphType k_lclGraph_
 Local graph; only initialized after first fillComplete() call.
ProfileType pftype_
 Whether the graph was allocated with static or dynamic profile.
Kokkos::DualView< const size_t
*, Kokkos::LayoutLeft,
device_type
k_numAllocPerRow_
 The maximum number of entries to allow in each locally owned row, per row.
Teuchos::ArrayRCP< const size_t > numAllocPerRow_
 Legacy Kokkos classic version of k_numAllocPerRow_.
size_t numAllocForAllRows_
 The maximum number of entries to allow in each locally owned row.
Details::EStorageStatus storageStatus_
 Status of the graph's storage, when not in a fill-complete state.
bool lowerTriangular_
 Whether the graph is locally lower triangular.
bool upperTriangular_
 Whether the graph is locally upper triangular.
bool indicesAreSorted_
 Whether the graph's indices are sorted in each row, on this process.
bool noRedundancies_
 Whether the graph's indices are non-redundant (merged) in each row, on this process.
bool haveLocalConstants_
 Whether this process has computed local constants.
bool haveGlobalConstants_
 Whether all processes have computed global constants.
std::map< GlobalOrdinal,
std::vector< GlobalOrdinal > > 
nonlocals_
 Nonlocal data given to insertGlobalValues or sumIntoGlobalValues.
bool sortGhostsAssociatedWithEachProcessor_
 Whether to require makeColMap() (and therefore fillComplete()) to order column Map GIDs associated with each remote process in ascending order.
Teuchos::RCP< const Map
< LocalOrdinal, GlobalOrdinal,
Kokkos::Compat::KokkosDeviceWrapperNode
< DeviceType > > > 
map_
 The Map over which this object is distributed.
Teuchos::Array< GlobalOrdinal > imports_
 Buffer into which packed data are imported (received from other processes).
Teuchos::Array< size_t > numImportPacketsPerLID_
 Number of packets to receive for each receive operation.
Teuchos::Array< GlobalOrdinal > exports_
 Buffer from which packed data are exported (sent to other processes).
Teuchos::Array< size_t > numExportPacketsPerLID_
 Number of packets to send for each send operation.

1-D storage (StaticProfile) data structures

typedef Kokkos::View
< GlobalOrdinal *, device_type
t_GlobalOrdinal_1D
 Type of the k_gblInds1D_ array of global column indices.
t_LocalOrdinal_1D k_lclInds1D_
 Local column indices for all rows.
t_GlobalOrdinal_1D k_gblInds1D_
 Global column indices for all rows.
Teuchos::ArrayRCP< GlobalOrdinal > gblInds1D_
 Legacy Kokkos classic version of k_gblInds1D_.
t_RowPtrs k_rowPtrs_
 Row offsets for "1-D" storage.

2-D storage (DynamicProfile) data structures

2-D storage exists only if the graph was allocated with DynamicProfile. All of these data structures exist in host memory. Currently, NONE of them are thread safe, let alone thread scalable. These data structures only exist to support legacy use cases. At some point, we may add a thread-scalable intermediate level of "dynamicity" between 2-D storage and 1-D storage (StaticProfile), which bounds the total number of entries allowed per process, but does not otherwise bound the number of entries per row.

typedef Kokkos::DualView
< size_t *, Kokkos::LayoutLeft,
device_type
t_numRowEntries_
Teuchos::ArrayRCP
< Teuchos::Array< LocalOrdinal > > 
lclInds2D_
 Local column indices for all rows.
Teuchos::ArrayRCP
< Teuchos::Array
< GlobalOrdinal > > 
gblInds2D_
 Global column indices for all rows.
t_numRowEntries_ k_numRowEntries_
 The number of local entries in each locally owned row.
Teuchos::ArrayRCP< size_t > numRowEntries_
 Legacy Kokkos classic version of k_numRowEntries_.

Methods for use only by experts

void removeEmptyProcessesInPlace (Teuchos::RCP< Tpetra::DistObject< PT, LO, GO, NT > > &input, const Teuchos::RCP< const Map< LO, GO, NT > > &newMap)
void removeEmptyProcessesInPlace (Teuchos::RCP< Tpetra::DistObject< PT, LO, GO, NT > > &input)
virtual void removeEmptyProcessesInPlace (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > > &newMap)
 Remove processes which contain no elements in this object's Map.

Detailed Description

template<class LocalOrdinal, class GlobalOrdinal, class DeviceType>
class Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >

Partial specialization of CrsGraph for the new Kokkos Node types.

This implements the "Kokkos refactor" version of CrsGraph. For full documentation, see the "classic" version of CrsGraph.

Definition at line 118 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.


Member Typedef Documentation

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
typedef LocalOrdinal Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::local_ordinal_type

This class' first template parameter; the type of local indices.

Reimplemented from Tpetra::DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 146 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
typedef GlobalOrdinal Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::global_ordinal_type

This class' second template parameter; the type of global indices.

Reimplemented from Tpetra::DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 148 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
typedef DeviceType Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::device_type

This class' third template parameter; the Kokkos device type.

Definition at line 150 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
typedef Kokkos::Compat::KokkosDeviceWrapperNode<DeviceType> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::node_type

The Kokkos Node type used by this class.

This type depends on the DeviceType template parameter. In this, the Kokkos refactor version of Tpetra, it exists only for backwards compatibility.

Reimplemented from Tpetra::DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 156 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
typedef Tpetra::Map<LocalOrdinal, GlobalOrdinal, node_type> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::map_type

The Map specialization used by this class.

Definition at line 166 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
typedef Tpetra::Import<LocalOrdinal, GlobalOrdinal, node_type> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::import_type

The Import specialization used by this class.

Definition at line 168 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
typedef Tpetra::Export<LocalOrdinal, GlobalOrdinal, node_type> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::export_type

The Export specialization used by this class.

Definition at line 170 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
typedef Kokkos::View<GlobalOrdinal*, device_type> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::t_GlobalOrdinal_1D [protected]

Type of the k_gblInds1D_ array of global column indices.

Definition at line 1730 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

typedef GlobalOrdinal Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::packet_type [inherited]

The type of each datum being sent or received in an Import or Export.

Note that this type does not always correspond to the Scalar template parameter of subclasses.

Definition at line 183 of file Tpetra_DistObject_decl.hpp.


Constructor & Destructor Documentation

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::CrsGraph ( const Teuchos::RCP< const map_type > &  rowMap,
size_t  maxNumEntriesPerRow,
ProfileType  pftype = DynamicProfile,
const Teuchos::RCP< Teuchos::ParameterList > &  params = Teuchos::null 
)

Constructor specifying a single upper bound for the number of entries in all rows on the calling process.

Parameters:
rowMap[in] Distribution of rows of the graph.
maxNumEntriesPerRow[in] Maximum number of graph entries per row. If pftype==DynamicProfile, this is only a hint, and you can set this to zero without affecting correctness. If pftype==StaticProfile, this sets the amount of storage allocated, and you cannot exceed this number of entries in any row.
pftype[in] Whether to allocate storage dynamically (DynamicProfile) or statically (StaticProfile).
params[in/out] Optional list of parameters. If not null, any missing parameters will be filled in with their default values.

Definition at line 56 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::CrsGraph ( const Teuchos::RCP< const map_type > &  rowMap,
const Kokkos::DualView< const size_t *, device_type > &  numEntPerRow,
const ProfileType  pftype = DynamicProfile,
const Teuchos::RCP< Teuchos::ParameterList > &  params = Teuchos::null 
)

Constructor specifying a (possibly different) upper bound for the number of entries in each row.

Parameters:
rowMap[in] Distribution of rows of the graph.
numEntPerRow[in] Maximum number of graph entries to allocate for each row. If pftype==DynamicProfile, this is only a hint. If pftype==StaticProfile, this sets the amount of storage allocated, and you cannot exceed the allocated number of entries for any row.
pftype[in] Whether to allocate storage dynamically (DynamicProfile) or statically (StaticProfile).
params[in/out] Optional list of parameters. If not null, any missing parameters will be filled in with their default values.

Definition at line 210 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::CrsGraph ( const Teuchos::RCP< const map_type > &  rowMap,
const Teuchos::ArrayRCP< const size_t > &  numEntPerRow,
const ProfileType  pftype = DynamicProfile,
const Teuchos::RCP< Teuchos::ParameterList > &  params = Teuchos::null 
)

Constructor specifying a (possibly different) upper bound for the number of entries in each row (legacy KokkosClassic version).

Parameters:
rowMap[in] Distribution of rows of the graph.
numEntPerRow[in] Maximum number of graph entries to allocate for each row. If pftype==DynamicProfile, this is only a hint. If pftype==StaticProfile, this sets the amount of storage allocated, and you cannot exceed the allocated number of entries for any row.
pftype[in] Whether to allocate storage dynamically (DynamicProfile) or statically (StaticProfile).
params[in/out] Optional list of parameters. If not null, any missing parameters will be filled in with their default values.

Definition at line 138 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::CrsGraph ( const Teuchos::RCP< const map_type > &  rowMap,
const Teuchos::RCP< const map_type > &  colMap,
const size_t  maxNumEntriesPerRow,
const ProfileType  pftype = DynamicProfile,
const Teuchos::RCP< Teuchos::ParameterList > &  params = null 
)

Constructor specifying column Map and a single upper bound for the number of entries in all rows on the calling process.

Parameters:
rowMap[in] Distribution of rows of the graph.
colMap[in] Distribution of columns of the graph.
maxNumEntriesPerRow[in] Maximum number of graph entries per row. If pftype==DynamicProfile, this is only a hint, and you can set this to zero without affecting correctness. If pftype==StaticProfile, this sets the amount of storage allocated, and you cannot exceed this number of entries in any row.
pftype[in] Whether to allocate storage dynamically (DynamicProfile) or statically (StaticProfile).
params[in/out] Optional list of parameters. If not null, any missing parameters will be filled in with their default values.

Definition at line 96 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::CrsGraph ( const Teuchos::RCP< const map_type > &  rowMap,
const Teuchos::RCP< const map_type > &  colMap,
const Kokkos::DualView< const size_t *, device_type > &  numEntPerRow,
ProfileType  pftype = DynamicProfile,
const Teuchos::RCP< Teuchos::ParameterList > &  params = null 
)

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

Parameters:
rowMap[in] Distribution of rows of the graph.
colMap[in] Distribution of columns of the graph.
numEntPerRow[in] Maximum number of graph entries to allocate for each row. If pftype==DynamicProfile, this is only a hint. If pftype==StaticProfile, this sets the amount of storage allocated, and you cannot exceed the allocated number of entries for any row.
pftype[in] Whether to allocate storage dynamically (DynamicProfile) or statically (StaticProfile).
params[in/out] Optional list of parameters. If not null, any missing parameters will be filled in with their default values.

Definition at line 265 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::CrsGraph ( const Teuchos::RCP< const map_type > &  rowMap,
const Teuchos::RCP< const map_type > &  colMap,
const Teuchos::ArrayRCP< const size_t > &  numEntPerRow,
ProfileType  pftype = DynamicProfile,
const Teuchos::RCP< Teuchos::ParameterList > &  params = null 
)

Constructor specifying column Map and number of entries in each row (legacy KokkosClassic version).

Parameters:
rowMap[in] Distribution of rows of the graph.
colMap[in] Distribution of columns of the graph.
numEntPerRow[in] Maximum number of graph entries to allocate for each row. If pftype==DynamicProfile, this is only a hint. If pftype==StaticProfile, this sets the amount of storage allocated, and you cannot exceed the allocated number of entries for any row.
pftype[in] Whether to allocate storage dynamically (DynamicProfile) or statically (StaticProfile).
params[in/out] Optional list of parameters. If not null, any missing parameters will be filled in with their default values.

Definition at line 322 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::CrsGraph ( const Teuchos::RCP< const map_type > &  rowMap,
const Teuchos::RCP< const map_type > &  colMap,
const t_RowPtrs &  rowPointers,
const t_LocalOrdinal_1D &  columnIndices,
const Teuchos::RCP< Teuchos::ParameterList > &  params = null 
)

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 397 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::CrsGraph ( 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 = null 
)

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 433 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::CrsGraph ( const Teuchos::RCP< const map_type > &  rowMap,
const Teuchos::RCP< const map_type > &  colMap,
const LocalStaticCrsGraphType &  lclGraph,
const Teuchos::RCP< Teuchos::ParameterList > &  params 
)

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 469 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::~CrsGraph ( ) [virtual]

Destructor.

Definition at line 611 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.


Member Function Documentation

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
template<class Node2 >
Teuchos::RCP<CrsGraph<LocalOrdinal, GlobalOrdinal, Node2> > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::clone ( const Teuchos::RCP< Node2 > &  node2,
const Teuchos::RCP< Teuchos::ParameterList > &  params = Teuchos::null 
) const [inline]

Create a cloned CrsGraph for a different Node type.

This method creates a new CrsGraph on a specified Kokkos Node type, with all of the entries of this CrsGraph object.

Parameters:
node2[in] Kokkos Node instance for constructing the clone CrsGraph and its constituent objects.
params[in/out] Optional list of parameters. If not null, any missing parameters will be filled in with their default values. See the list below for valid options.

Parameters accepted by this method:

  • "Static profile clone" [bool, default: true] If true, creates the clone with a static allocation profile. If false, a dynamic allocation profile is used.
  • "Locally indexed clone" [bool] If true, fills clone using this graph's column map and local indices (requires that this graph have a column map.) If false, fills clone using global indices and does not provide a column map. By default, will use local indices only if this graph is using local indices.
  • "fillComplete clone" [boolean, default: true] If true, calls fillComplete() on the cloned CrsGraph object, with parameters from params sublist "CrsGraph". The domain map and range maps passed to fillComplete() are those of the map being cloned, if they exist. Otherwise, the row map is used.

Definition at line 421 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::setParameterList ( const Teuchos::RCP< Teuchos::ParameterList > &  params)

Set the given list of parameters (must be nonnull).

Definition at line 659 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP< const Teuchos::ParameterList > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getValidParameters ( ) const

Default parameter list suitable for validation.

Definition at line 620 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::insertGlobalIndices ( GlobalOrdinal  globalRow,
const Teuchos::ArrayView< const GlobalOrdinal > &  indices 
)

Insert global indices into the graph.

Precondition:
globalRow is a valid index in the row Map. It need not be owned by the calling process.
isLocallyIndexed() == false
isStorageOptimized() == false
Postcondition:
indicesAreAllocated() == true
isGloballyIndexed() == true

If globalRow does not belong to the graph on this process, then it will be communicated to the appropriate process when globalAssemble() is called. (That method will be called automatically during the next call to fillComplete().) Otherwise, the entries will be inserted into the part of the graph owned by the calling process.

If the graph row already contains entries at the indices corresponding to values in indices, then the redundant indices will be eliminated. This may happen either at insertion or during the next call to fillComplete().

Definition at line 2639 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::insertLocalIndices ( const LocalOrdinal  localRow,
const Teuchos::ArrayView< const LocalOrdinal > &  indices 
)

Insert local indices into the graph.

Precondition:
localRow is a local row belonging to the graph on this process.
isGloballyIndexed() == false
isStorageOptimized() == false
hasColMap() == true
Postcondition:
indicesAreAllocated() == true
isLocallyIndexed() == true
Note:
If the graph row already contains entries at the indices corresponding to values in indices, then the redundant indices will be eliminated; this may happen at insertion or during the next call to fillComplete().

Definition at line 2512 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::removeLocalIndices ( LocalOrdinal  localRow)

Remove all graph indices from the specified local row.

Precondition:
localRow is a local row of this graph.
isGloballyIndexed() == false
isStorageOptimized() == false
Postcondition:
getNumEntriesInLocalRow(localRow) == 0
indicesAreAllocated() == true
isLocallyIndexed() == true

Definition at line 2788 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::globalAssemble ( )

Communicate non-local contributions to other processes.

Each of the methods in this group is a global collective. It is necessary to call these mehtods on all nodes participating in the communicator associated with this graph. This method is called automatically by fillComplete(). Most users do not need to call this themselves, though we do permit this.

Definition at line 3011 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::resumeFill ( const Teuchos::RCP< Teuchos::ParameterList > &  params = Teuchos::null)

Resume fill operations. After calling fillComplete(), resumeFill() must be called before initiating any changes to the graph.

resumeFill() may be called repeatedly.

Postcondition:
isFillActive() == true
isFillComplete() == false

Definition at line 3301 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::fillComplete ( const Teuchos::RCP< const map_type > &  domainMap,
const Teuchos::RCP< const map_type > &  rangeMap,
const Teuchos::RCP< Teuchos::ParameterList > &  params = Teuchos::null 
)

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

Off-process indices are distributed (via globalAssemble()), indices are sorted, redundant indices are eliminated, and global indices are transformed to local indices.

Precondition:
isFillActive() == true
isFillComplete()() == false
Postcondition:
isFillActive() == false
isFillComplete() == true

Parameters:

Definition at line 3363 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::fillComplete ( const Teuchos::RCP< Teuchos::ParameterList > &  params = Teuchos::null)

Signal that data entry is complete.

Off-node entries are distributed (via globalAssemble()), repeated entries are summed, and global indices are transformed to local indices.

Note:
This method calls fillComplete( getRowMap(), getRowMap(), os ). See parameter options there.

Definition at line 3334 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::expertStaticFillComplete ( const Teuchos::RCP< const map_type > &  domainMap,
const Teuchos::RCP< const map_type > &  rangeMap,
const Teuchos::RCP< const import_type > &  importer = Teuchos::null,
const Teuchos::RCP< const export_type > &  exporter = Teuchos::null,
const Teuchos::RCP< Teuchos::ParameterList > &  params = Teuchos::null 
)

Perform a fillComplete on a graph that already has data, via setAllIndices().

The graph must already have filled local 1-D storage. If the graph has been constructed in any other way, this method will throw an exception. This routine is needed to support other Trilinos packages and should not be called by ordinary users.

Warning:
This method is intended for expert developer use only, and should never be called by user code.

Definition at line 3483 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP< const Teuchos::Comm< int > > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getComm ( ) const [virtual]
template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP< Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getNode ( ) const [virtual]
template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getRowMap ( ) const [virtual]

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

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 764 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getColMap ( ) const [virtual]

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

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 776 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getDomainMap ( ) const [virtual]

Returns the Map associated with the domain of this graph.

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 788 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getRangeMap ( ) const [virtual]

Returns the Map associated with the domain of this graph.

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 800 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP< const Import< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getImporter ( ) const [virtual]
template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP< const Export< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getExporter ( ) const [virtual]
template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
global_size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getGlobalNumRows ( ) const [virtual]

Returns the number of global rows in the graph.

Undefined if isFillActive().

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 673 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
global_size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getGlobalNumCols ( ) const [virtual]

Returns the number of global columns in the graph.

Returns the number of entries in the domain map of the matrix. Undefined if isFillActive().

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 684 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getNodeNumRows ( ) const [virtual]

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

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 700 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getNodeNumCols ( ) const [virtual]

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

Throws std::runtime_error if hasColMap() == false

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 712 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
GlobalOrdinal Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getIndexBase ( ) const [virtual]

Returns the index base for global indices for this graph.

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 1017 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
global_size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getGlobalNumEntries ( ) const [virtual]

Returns the global number of entries in the graph.

Undefined if isFillActive().

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 885 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getNodeNumEntries ( ) const [virtual]
template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getNumEntriesInGlobalRow ( GlobalOrdinal  globalRow) const [virtual]

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

Returns OrdinalTraits<size_t>::invalid() if the specified global row does not belong to this graph.

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 2236 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getNumEntriesInLocalRow ( LocalOrdinal  localRow) const [virtual]

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

Returns OrdinalTraits<size_t>::invalid() if the specified local row is not valid for this graph.

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 2254 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getNodeAllocationSize ( ) const

Returns the total number of indices allocated for the graph, across all rows on this node.

This is the allocation available to the user. Actual allocation may be larger, for example, after calling fillComplete(), and thus this does not necessarily reflect the memory consumption of the this graph.

This quantity is computed during the actual allocation. Therefore, if indicesAreAllocated() == false, this method returns OrdinalTraits<size_t>::invalid().

Definition at line 995 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getNumAllocatedEntriesInGlobalRow ( GlobalOrdinal  globalRow) const

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

Throws exception std::runtime_error if the specified global row does not belong to this node.

Definition at line 2270 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getNumAllocatedEntriesInLocalRow ( LocalOrdinal  localRow) const

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

Throws exception std::runtime_error if the specified local row is not valid for this node.

Definition at line 2287 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
global_size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getGlobalNumDiags ( ) const [virtual]

Returns the number of global diagonal entries, based on global row/column index comparisons.

Undefined if isFillActive().

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 742 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getNodeNumDiags ( ) const [virtual]

Returns the number of local diagonal entries, based on global row/column index comparisons.

Undefined if isFillActive().

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 731 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
global_size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getGlobalMaxNumRowEntries ( ) const [virtual]

Maximum number of entries in all rows over all processes.

Note:
Undefined if isFillActive().
This is the same as the result of a global maximum of getNodeMaxNumRowEntries() over all processes. That may not necessarily mean what you think it does if some rows of the matrix are owned by multiple processes. In particular, some processes might only own some of the entries in a particular row. This method only counts the number of entries in each row that a process owns, not the total number of entries in the row over all processes.

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 907 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getNodeMaxNumRowEntries ( ) const [virtual]

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

Undefined if isFillActive().

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 918 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::hasColMap ( ) const [virtual]

Whether the graph has a column Map.

A CrsGraph has a column Map either because it was given to its constructor, or because it was constructed in fillComplete(). Calling fillComplete() always makes a column Map if the graph does not already have one.

A column Map lets the graph

  • use local indices for storing entries in each row, and
  • compute an Import from the domain Map to the column Map.

The latter is mainly useful for a graph associated with a CrsMatrix.

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 836 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::isLowerTriangular ( ) const [virtual]

Whether the graph is locally lower triangular.

Precondition:
! isFillActive(). If fill is active, this method's behavior is undefined.
Note:
This is entirely a local property. That means this method may return different results on different processes.

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 962 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::isUpperTriangular ( ) const [virtual]

Whether the graph is locally upper triangular.

Precondition:
! isFillActive(). If fill is active, this method's behavior is undefined.
Note:
This is entirely a local property. That means this method may return different results on different processes.

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 951 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::isLocallyIndexed ( ) const [virtual]

If graph indices are in the local range, this function returns true. Otherwise, this function returns false. */.

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 973 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::isGloballyIndexed ( ) const [virtual]

If graph indices are in the global range, this function returns true. Otherwise, this function returns false. */.

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 984 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::isFillComplete ( ) const [virtual]

Returns true if fillComplete() has been called and the graph is in compute mode.

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 929 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::isFillActive ( ) const

Returns true if resumeFill() has been called and the graph is in edit mode.

Definition at line 940 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::isSorted ( ) const

Whether graph indices in all rows are known to be sorted.

A fill-complete graph is always sorted, as is a newly constructed graph. A graph is sorted immediately after calling resumeFill(), but any changes to the graph may result in the sorting status becoming unknown (and therefore, presumed unsorted).

Definition at line 1039 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::isStorageOptimized ( ) const

Returns true if storage has been optimized.

Optimized storage means that the allocation of each row is equal to the number of entries. The effect is that a pass through the matrix, i.e., during a mat-vec, requires minimal memory traffic. One limitation of optimized storage is that no new indices can be added to the graph.

Definition at line 847 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
ProfileType Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getProfileType ( ) const

Returns true if the graph was allocated with static data structures.

Definition at line 874 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getGlobalRowCopy ( GlobalOrdinal  GlobalRow,
const Teuchos::ArrayView< GlobalOrdinal > &  Indices,
size_t &  NumIndices 
) const [virtual]

Get a copy of the given row, using global indices.

Parameters:
GlobalRow[in] Global index of the row.
Indices[out] On output: Global column indices.
NumIndices[out] Number of indices returned.

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 2391 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getLocalRowCopy ( LocalOrdinal  LocalRow,
const Teuchos::ArrayView< LocalOrdinal > &  indices,
size_t &  NumIndices 
) const [virtual]

Get a copy of the given row, using local indices.

Parameters:
LocalRow[in] Local index of the row.
Indices[out] On output: Local column indices.
NumIndices[out] Number of indices returned.
Precondition:
hasColMap()

Implements Tpetra::RowGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 2325 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getGlobalRowView ( GlobalOrdinal  GlobalRow,
Teuchos::ArrayView< const GlobalOrdinal > &  Indices 
) const

Extract a const, non-persisting view of global indices in a specified row of the graph.

Parameters:
GlobalRow- (In) Global row number for which indices are desired.
Indices- (Out) Global column indices corresponding to values.
Precondition:
isLocallyIndexed() == false
Postcondition:
indices.size() == getNumEntriesInGlobalRow(GlobalRow)

Note: If GlobalRow does not belong to this node, then indices is set to null.

Definition at line 2473 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getLocalRowView ( LocalOrdinal  LocalRow,
Teuchos::ArrayView< const LocalOrdinal > &  indices 
) const

Extract a const, non-persisting view of local indices in a specified row of the graph.

Parameters:
LocalRow- (In) Local row number for which indices are desired.
Indices- (Out) Global column indices corresponding to values.
Precondition:
isGloballyIndexed() == false
Postcondition:
indices.size() == getNumEntriesInLocalRow(LocalRow)

Note: If LocalRow does not belong to this node, then indices is set to null.

Definition at line 2436 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
std::string Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::description ( ) const [virtual]
template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::describe ( Teuchos::FancyOStream &  out,
const Teuchos::EVerbosityLevel  verbLevel = Teuchos::Describable::verbLevel_default 
) const [virtual]

Print the object to the given output stream with given verbosity level.

Reimplemented from Tpetra::DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 4950 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::checkSizes ( const SrcDistObject source) [virtual]

Compare the source and target (this) objects for compatibility.

Returns:
True if they are compatible, else false.

Implements Tpetra::DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 5071 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::copyAndPermute ( const SrcDistObject source,
size_t  numSameIDs,
const Teuchos::ArrayView< const LocalOrdinal > &  permuteToLIDs,
const Teuchos::ArrayView< const LocalOrdinal > &  permuteFromLIDs 
) [virtual]

Perform copies and permutations that are local to this process.

Parameters:
source[in] On entry, the source object, from which we are distributing. We distribute to the destination object, which is *this object.
numSameIDs[in] The umber of elements that are the same on the source and destination (this) objects. These elements are owned by the same process in both the source and destination objects. No permutation occurs.
numPermuteIDs[in] The number of elements that are locally permuted between the source and destination objects.
permuteToLIDs[in] List of the elements that are permuted. They are listed by their LID in the destination object.
permuteFromLIDs[in] List of the elements that are permuted. They are listed by their LID in the source object.

Implements Tpetra::DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 5087 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::packAndPrepare ( const SrcDistObject source,
const Teuchos::ArrayView< const LocalOrdinal > &  exportLIDs,
Teuchos::Array< GlobalOrdinal > &  exports,
const Teuchos::ArrayView< size_t > &  numPacketsPerLID,
size_t &  constantNumPackets,
Distributor distor 
) [virtual]

Perform any packing or preparation required for communication.

Parameters:
source[in] Source object for the redistribution.
exportLIDs[in] List of the entries (as local IDs in the source object) we will be sending to other images.
exports[out] On exit, the buffer for data to send.
numPacketsPerLID[out] On exit, the implementation of this method must do one of two things: set numPacketsPerLID[i] to contain the number of packets to be exported for exportLIDs[i] and set constantNumPackets to zero, or set constantNumPackets to a nonzero value. If the latter, the implementation need not fill numPacketsPerLID.
constantNumPackets[out] On exit, 0 if numPacketsPerLID has variable contents (different size for each LID). If nonzero, then it is expected that the number of packets per LID is constant, and that constantNumPackets is that value.
distor[in] The Distributor object we are using.

Implements Tpetra::DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 5189 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::pack ( const Teuchos::ArrayView< const LocalOrdinal > &  exportLIDs,
Teuchos::Array< GlobalOrdinal > &  exports,
const Teuchos::ArrayView< size_t > &  numPacketsPerLID,
size_t &  constantNumPackets,
Distributor distor 
) const [virtual]
template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::unpackAndCombine ( const Teuchos::ArrayView< const LocalOrdinal > &  importLIDs,
const Teuchos::ArrayView< const GlobalOrdinal > &  imports,
const Teuchos::ArrayView< size_t > &  numPacketsPerLID,
size_t  constantNumPackets,
Distributor distor,
CombineMode  CM 
) [virtual]

Perform any unpacking and combining after communication.

Parameters:
importLIDs[in] List of the entries (as LIDs in the destination object) we received from other images.
imports[in] Buffer containing data we received.
numPacketsPerLID[in] If constantNumPackets is zero, then numPacketsPerLID[i] contains the number of packets imported for importLIDs[i].
constantNumPackets[in] If nonzero, then numPacketsPerLID is constant (same value in all entries) and constantNumPackets is that value. If zero, then numPacketsPerLID[i] is the number of packets imported for importLIDs[i].
distor[in] The Distributor object we are using.
CM[in] The combine mode to use when combining the imported entries with existing entries.

Implements Tpetra::DistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >.

Definition at line 5280 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getNumEntriesPerLocalRowUpperBound ( Teuchos::ArrayRCP< const size_t > &  boundPerLocalRow,
size_t &  boundForAllLocalRows,
bool &  boundSameForAllLocalRows 
) const

Get an upper bound on the number of entries that can be stored in each row.

When a CrsGraph is constructed, callers must give an upper bound on the number of entries in each local row. They may either supply a single integer which is the upper bound for all local rows, or they may give an array with a possibly different upper bound for each local row.

This method returns the upper bound for each row. If numEntriesPerLocalRowBound is Teuchos::null on output and boundSameForAllLocalRows is true on output, then numEntriesAllLocalRowsBound is the upper bound for all local rows. If boundSameForAllLocalRows is false on output, then numEntriesPerLocalRowBound has zero or more entries on output, and numEntriesPerLocalRowBound[i_local] is the upper bound for local row i_local.

The output argument boundSameForAllLocalRows is conservative; it only tells us whether boundForAllLocalRows has a meaningful value on output. We don't necessarily check whether all entries of boundPerLocalRow are the same.

Definition at line 2905 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::setAllIndices ( const t_RowPtrs &  rowPointers,
const t_LocalOrdinal_1D &  columnIndices 
)

Set the graph's data directly, using 1-D storage.

Precondition:
hasColMap() == true
rowPointers.size() != getNodeNumRows()+1
No insert routines have been called.
Warning:
This method is intended for expert developer use only, and should never be called by user code.

Definition at line 2836 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::setAllIndices ( const Teuchos::ArrayRCP< size_t > &  rowPointers,
const Teuchos::ArrayRCP< LocalOrdinal > &  columnIndices 
)

Set the graph's data directly, using 1-D storage.

Precondition:
hasColMap() == true
rowPointers.size() != getNodeNumRows()+1
No insert routines have been called.
Warning:
This method is intended for expert developer use only, and should never be called by user code.

Definition at line 2888 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::ArrayRCP< const size_t > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getNodeRowPtrs ( ) const

Get an Teuchos::ArrayRCP of the row-offsets.

The returned buffer exists in host-memory. This method may return Teuchos::null if "Delete Row Pointers" was true on fillComplete().

Definition at line 2303 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::ArrayRCP< const LocalOrdinal > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getNodePackedIndices ( ) const

Get an Teuchos::ArrayRCP of the packed column-indices.

The returned buffer exists in host-memory.

Definition at line 2314 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::replaceColMap ( const Teuchos::RCP< const map_type > &  newColMap)

Replace the graph's current column Map with the given Map.

This only replaces the column Map. It does not change the graph's current column indices, or otherwise apply a permutation. For example, suppose that before calling this method, the calling process owns a row containing local column indices [0, 2, 4]. These indices do not change, nor does their order change, as a result of calling this method.

Parameters:
newColMap[in] New column Map. Must be nonnull.

Definition at line 3912 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::reindexColumns ( const Teuchos::RCP< const map_type > &  newColMap,
const Teuchos::RCP< const import_type > &  newImport = Teuchos::null,
const bool  sortIndicesInEachRow = true 
)

Reindex the column indices in place, and replace the column Map. Optionally, replace the Import object as well.

Precondition:
On every calling process, every index owned by the current column Map must also be owned by the new column Map.
If the new Import object is provided, the new Import object's source Map must be the same as the current domain Map, and the new Import's target Map must be the same as the new column Map.
Parameters:
newColMap[in] New column Map. Must be nonnull.
newImport[in] New Import object. Optional; computed if not provided or if null. Computing an Import is expensive, so it is worth providing this if you can.
sortIndicesInEachRow[in] If true, sort the indices in each row after reindexing.

Definition at line 3933 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::replaceDomainMapAndImporter ( const Teuchos::RCP< const map_type > &  newDomainMap,
const Teuchos::RCP< const import_type > &  newImporter 
)

Replace the current domain Map and Import with the given parameters.

Warning:
This method is ONLY for use by experts.
We make NO promises of backwards compatibility. This method may change or disappear at any time.
Precondition:
isFillComplete() == true
isFillActive() == false
Either the given Import object is null, or the target Map of the given Import is the same as this graph's column Map.
Either the given Import object is null, or the source Map of the given Import is the same as this graph's domain Map.

Definition at line 4202 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::removeEmptyProcessesInPlace ( const Teuchos::RCP< const map_type > &  newMap) [virtual]

Remove processes owning zero rows from the Maps and their communicator.

Warning:
This method is ONLY for use by experts. We highly recommend using the nonmember function of the same name defined in Tpetra_DistObject_decl.hpp.
We make NO promises of backwards compatibility. This method may change or disappear at any time.
Parameters:
newMap[in] This must be the result of calling the removeEmptyProcesses() method on the row Map. If it is not, this method's behavior is undefined. This pointer will be null on excluded processes.

This method satisfies the strong exception guarantee, as long the destructors of Export, Import, and Map do not throw exceptions. This means that either the method returns normally (without throwing an exception), or there are no externally visible side effects. However, this does not guarantee no deadlock when the graph's original communicator contains more than one process. In order to prevent deadlock, you must still wrap this call in a try/catch block and do an all-reduce over all processes in the original communicator to test whether the call succeeded. This safety measure should usually be unnecessary, since the method call should only fail on user error or failure to allocate memory.

Definition at line 5334 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::makeColMap ( ) [protected]

Make the graph's column Map, if it does not already have one.

Definition at line 4519 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::insertIndices ( const RowInfo rowInfo,
const SLocalGlobalViews &  newInds,
const ELocalGlobal  lg,
const ELocalGlobal  I 
) [protected]

Insert indices into the given row.

Precondition:
! (lg == LocalIndices && I == GlobalIndices). It does not make sense to give this method local column indices (meaning that the graph has a column Map), yet to ask it to store global indices.
Parameters:
rowInfo[in] Result of CrsGraph's getRowInfo() or updateAllocAndValues() methods, for the locally owned row (whose local index is rowInfo.localRow) for which you want to insert indices.
newInds[in] View of the column indices to insert. If lg == GlobalIndices, then newInds.ginds, a Teuchos::ArrayView<const GlobalOrdinal>, contains the (global) column indices to insert. Otherwise, if lg == LocalIndices, then newInds.linds, a Teuchos::ArrayView<const LocalOrdinal>, contains the (local) column indices to insert.
lgIf lg == GlobalIndices, then the input indices (in newInds) are global indices. Otherwise, if lg == LocalIndices, the input indices are local indices.
IIf lg == GlobalIndices, then this method will store the input indices as global indices. Otherwise, if I == LocalIndices, this method will store the input indices as local indices.

Definition at line 1522 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
template<class Scalar >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::insertIndicesAndValues ( const RowInfo rowInfo,
const SLocalGlobalViews &  newInds,
const Teuchos::ArrayView< Scalar > &  oldRowVals,
const Teuchos::ArrayView< const Scalar > &  newRowVals,
const ELocalGlobal  lg,
const ELocalGlobal  I 
) [protected]

Insert indices and their values into the given row.

Template Parameters:
ScalarThe type of a single value. When this method is called by CrsMatrix, Scalar corresponds to the first template parameter of CrsMatrix.
Precondition:
! (lg == LocalIndices && I == GlobalIndices). It does not make sense to give this method local column indices (meaning that the graph has a column Map), yet to ask it to store global indices.
Parameters:
rowInfo[in] Result of CrsGraph's getRowInfo() or updateAllocAndValues() methods, for the locally owned row (whose local index is rowInfo.localRow) for which you want to insert indices.
newInds[in] View of the column indices to insert. If lg == GlobalIndices, then newInds.ginds, a Teuchos::ArrayView<const GlobalOrdinal>, contains the (global) column indices to insert. Otherwise, if lg == LocalIndices, then newInds.linds, a Teuchos::ArrayView<const LocalOrdinal>, contains the (local) column indices to insert.
oldRowVals[out] View of the current values. They will be overwritten with the new values.
newRowVals[in] View of the new values. They will be copied over the old values.
lgIf lg == GlobalIndices, then the input indices (in newInds) are global indices. Otherwise, if lg == LocalIndices, the input indices are local indices.
IIf lg == GlobalIndices, then this method will store the input indices as global indices. Otherwise, if I == LocalIndices, this method will store the input indices as local indices.

Definition at line 1713 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::insertLocalIndicesFiltered ( const LocalOrdinal  localRow,
const Teuchos::ArrayView< const LocalOrdinal > &  indices 
) [protected]

Like insertLocalIndices(), but with column Map filtering.

Definition at line 2586 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::insertGlobalIndicesFiltered ( const GlobalOrdinal  localRow,
const Teuchos::ArrayView< const GlobalOrdinal > &  indices 
) [protected]

Like insertGlobalIndices(), but with column Map filtering.

Definition at line 2723 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
template<class Scalar , class BinaryFunction >
LocalOrdinal Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::transformLocalValues ( RowInfo  rowInfo,
const Teuchos::ArrayView< Scalar > &  rowVals,
const Teuchos::ArrayView< const LocalOrdinal > &  inds,
const Teuchos::ArrayView< const Scalar > &  newVals,
BinaryFunction  f 
) const [inline, protected]

Transform the given values using local indices.

Parameters:
rowInfo[in] Information about a given row of the graph.
rowVals[in/out] The values to be transformed. They correspond to the row indicated by rowInfo.
inds[in] The (local) indices in the row, for which to transform the corresponding values in rowVals.
newVals[in] Values to use for transforming rowVals. It's probably OK for these to alias rowVals.
f[in] A binary function used to transform rowVals.

This method transforms the values using the expression

 newVals[k] = f( rowVals[k], newVals[j] );

where k is the local index corresponding to inds[j]. It ignores elements of inds that are not owned by the calling process.

Returns:
The number of valid local column indices. In case of error other than one or more invalid column indices, this method returns Teuchos::OrdinalTraits<LocalOrdinal>::invalid().

Definition at line 1357 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
template<class Scalar , class BinaryFunction >
LocalOrdinal Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::transformGlobalValues ( RowInfo  rowInfo,
const Teuchos::ArrayView< Scalar > &  rowVals,
const Teuchos::ArrayView< const GlobalOrdinal > &  inds,
const Teuchos::ArrayView< const Scalar > &  newVals,
BinaryFunction  f 
) const [inline, protected]

Transform the given values using global indices.

Parameters:
rowInfo[in] Information about a given row of the graph.
rowVals[in/out] The values to be transformed. They correspond to the row indicated by rowInfo.
inds[in] The (global) indices in the row, for which to transform the corresponding values in rowVals.
newVals[in] Values to use for transforming rowVals. It's probably OK for these to alias rowVals.
f[in] A binary function used to transform rowVals.
Returns:
The number of valid local column indices. In case of error other than one or more invalid column indices, this method returns Teuchos::OrdinalTraits<LocalOrdinal>::invalid().

Definition at line 1405 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::isMerged ( ) const [protected]

Whether duplicate column indices in each row have been merged.

Definition at line 1050 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::setLocallyModified ( ) [protected]

Report that we made a local modification to its structure.

Call this after making a local change to the graph's structure. Changing the structure locally invalidates the "is sorted" and "is merged" states.

Definition at line 1061 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::sortAllIndices ( ) [protected]

Sort the column indices in all the rows.

Definition at line 4498 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::sortRowIndices ( const RowInfo  rowinfo) [protected]

Sort the column indices in the given row.

Definition at line 1776 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
template<class Scalar >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::sortRowIndicesAndValues ( const RowInfo  rowinfo,
const Teuchos::ArrayView< Scalar > &  values 
) [protected]

Sort the column indices and their values in the given row.

Template Parameters:
ScalarThe type of the values. When calling this method from CrsMatrix, this should be the same as the Scalar template parameter of CrsMatrix.
Parameters:
rowinfo[in] Result of getRowInfo() for the row.
values[in/out] On input: values for the given row. If indices is an array of the column indices in the row, then values and indices should have the same number of entries, and indices[k] should be the column index corresponding to values[k]. On output: the same values, but sorted in the same order as the (now sorted) column indices in the row.

Definition at line 1792 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::mergeAllIndices ( ) [protected]

Merge duplicate row indices in all of the rows.

Precondition:
The graph is locally indexed: isGloballyIndexed() == false.
The graph has not already been merged: isMerged() == false. That is, this function would normally only be called after calling sortIndices().

Definition at line 4853 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::mergeRowIndices ( RowInfo  rowinfo) [protected]

Merge duplicate row indices in the given row.

Precondition:
The graph is not already storage optimized: isStorageOptimized() == false

Definition at line 1809 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
template<class Scalar >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::mergeRowIndicesAndValues ( RowInfo  rowinfo,
const Teuchos::ArrayView< Scalar > &  rowValues 
) [protected]

Merge duplicate row indices in the given row, along with their corresponding values.

This method is only called by CrsMatrix, for a CrsMatrix whose graph is this CrsGraph instance. It is only called when the matrix owns the graph, not when the matrix was constructed with a const graph.

Precondition:
The graph is not already storage optimized: isStorageOptimized() == false

Definition at line 1848 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::setDomainRangeMaps ( const Teuchos::RCP< const map_type > &  domainMap,
const Teuchos::RCP< const map_type > &  rangeMap 
) [protected]

Set the domain and range Maps, and invalidate the Import and/or Export objects if necessary.

If the domain Map has changed, invalidate the Import object (if there is one). Likewise, if the range Map has changed, invalidate the Export object (if there is one).

Parameters:
domainMap[in] The new domain Map
rangeMap[in] The new range Map

Definition at line 1918 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
RowInfo Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getRowInfo ( const size_t  myRow) const [protected]

Get information about the locally owned row with local index myRow.

Definition at line 1400 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::ArrayView< const LocalOrdinal > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getLocalView ( const RowInfo  rowinfo) const [protected]

Get a const, nonowned, locally indexed view of the locally owned row myRow, such that rowinfo = getRowInfo(myRow).

Definition at line 1292 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::ArrayView< LocalOrdinal > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getLocalViewNonConst ( const RowInfo  rowinfo) [protected]

Get a nonconst, nonowned, locally indexed view of the locally owned row myRow, such that rowinfo = getRowInfo(myRow).

Definition at line 1326 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::ArrayView< const GlobalOrdinal > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getGlobalView ( const RowInfo  rowinfo) const [protected]

Get a const, nonowned, globally indexed view of the locally owned row myRow, such that rowinfo = getRowInfo(myRow).

Definition at line 1360 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::ArrayView< GlobalOrdinal > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getGlobalViewNonConst ( const RowInfo  rowinfo) [protected]

Get a nonconst, nonowned, globally indexed view of the locally owned row myRow, such that rowinfo = getRowInfo(myRow).

Definition at line 1380 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::findLocalIndex ( RowInfo  rowinfo,
LocalOrdinal  ind,
size_t  hint = 0 
) const [protected]

Find the column offset corresponding to the given (local) column index.

The name of this method is a bit misleading. It does not actually find the column index. Instead, it takes a local column index ind, and returns the corresponding offset into the raw array of column indices (whether that be 1-D or 2-D storage).

Parameters:
rowinfo[in] Result of getRowInfo() for the given row.
ind[in] (Local) column index for which to find the offset.
hint[in] Hint for where to find ind in the column indices for the given row. If colInds is the ArrayView of the (local) column indices for the given row, and if colInds[hint] == ind, then the hint is correct. The hint is ignored if it is out of range (that is, greater than or equal to the number of entries in the given row).

The hint optimizes for the case of calling this method several times with the same row (as it would be in transformLocalValues) when several index inputs occur in consecutive sequence. This may occur (for example) when there are multiple degrees of freedom per mesh point, and users are handling the assignment of degrees of freedom to global indices manually (rather than letting BlockMap take care of it). In that case, users might choose to assign the degrees of freedom for a mesh point to consecutive global indices. Epetra implements the hint for this reason.

The hint only costs two comparisons (one to check range, and the other to see if the hint was correct), and it can save searching for the indices (which may take a lot more than two comparisons).

Definition at line 1938 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::findLocalIndex ( RowInfo  rowinfo,
LocalOrdinal  ind,
Teuchos::ArrayView< const LocalOrdinal >  colInds,
size_t  hint = 0 
) const [protected]

Find the column offset corresponding to the given (local) column index, given a view of the (local) column indices.

The name of this method is a bit misleading. It does not actually find the column index. Instead, it takes a local column index ind, and returns the corresponding offset into the raw array of column indices (whether that be 1-D or 2-D storage).

It is best to use this method if you plan to call it several times for the same row, like in transformLocalValues(). In that case, it amortizes the overhead of calling getLocalView().

Parameters:
rowinfo[in] Result of getRowInfo() for the given row.
ind[in] (Local) column index for which to find the offset.
colInds[in] View of all the (local) column indices for the given row.
hint[in] Hint for where to find ind in the column indices for the given row. If colInds is the ArrayView of the (local) column indices for the given row, and if colInds[hint] == ind, then the hint is correct. The hint is ignored if it is out of range (that is, greater than or equal to the number of entries in the given row).

See the documentation of the three-argument version of this method for an explanation and justification of the hint.

Definition at line 1951 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::findGlobalIndex ( RowInfo  rowinfo,
GlobalOrdinal  ind,
size_t  hint = 0 
) const [protected]

Find the column offset corresponding to the given (global) column index.

The name of this method is a bit misleading. It does not actually find the column index. Instead, it takes a global column index ind, and returns the corresponding offset into the raw array of column indices (whether that be 1-D or 2-D storage).

Definition at line 2001 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::LocalStaticCrsGraphType Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getLocalGraph_Kokkos ( ) const [protected]

Get the local graph.

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

Definition at line 4249 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::hasRowInfo ( ) const [protected]

Whether it is correct to call getRowInfo().

Definition at line 5434 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
void Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::checkInternalState ( ) const [protected]

Throw an exception if the internal state is not consistent.

Definition at line 2059 of file Tpetra_KokkosRefactor_CrsGraph_def.hpp.

void Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::doImport ( const SrcDistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > &  source,
const Import< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > &  importer,
CombineMode  CM 
) [inherited]

Import data into this object using an Import object ("forward mode").

The input DistObject is always the source of the data redistribution operation, and the *this object is always the target.

If you don't know the difference between forward and reverse mode, then you probably want forward mode. Use this method with your precomputed Import object if you want to do an Import, else use doExport() with a precomputed Export object.

Parameters:
source[in] The "source" object for redistribution.
importer[in] Precomputed data redistribution plan. Its source Map must be the same as the input DistObject's Map, and its target Map must be the same as this->getMap().
CM[in] How to combine incoming data with the same global index.
void Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::doImport ( const SrcDistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > &  source,
const Export< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > &  exporter,
CombineMode  CM 
) [inherited]

Import data into this object using an Export object ("reverse mode").

The input DistObject is always the source of the data redistribution operation, and the *this object is always the target.

If you don't know the difference between forward and reverse mode, then you probably want forward mode. Use the version of doImport() that takes a precomputed Import object in that case.

Parameters:
source[in] The "source" object for redistribution.
exporter[in] Precomputed data redistribution plan. Its target Map must be the same as the input DistObject's Map, and its source Map must be the same as this->getMap(). (Note the difference from forward mode.)
CM[in] How to combine incoming data with the same global index.
void Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::doExport ( const SrcDistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > &  source,
const Export< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > &  exporter,
CombineMode  CM 
) [inherited]

Export data into this object using an Export object ("forward mode").

The input DistObject is always the source of the data redistribution operation, and the *this object is always the target.

If you don't know the difference between forward and reverse mode, then you probably want forward mode. Use this method with your precomputed Export object if you want to do an Export, else use doImport() with a precomputed Import object.

Parameters:
source[in] The "source" object for redistribution.
exporter[in] Precomputed data redistribution plan. Its source Map must be the same as the input DistObject's Map, and its target Map must be the same as this->getMap().
CM[in] How to combine incoming data with the same global index.
void Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::doExport ( const SrcDistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > &  source,
const Import< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > &  importer,
CombineMode  CM 
) [inherited]

Export data into this object using an Import object ("reverse mode").

The input DistObject is always the source of the data redistribution operation, and the *this object is always the target.

If you don't know the difference between forward and reverse mode, then you probably want forward mode. Use the version of doExport() that takes a precomputed Export object in that case.

Parameters:
source[in] The "source" object for redistribution.
importer[in] Precomputed data redistribution plan. Its target Map must be the same as the input DistObject's Map, and its source Map must be the same as this->getMap(). (Note the difference from forward mode.)
CM[in] How to combine incoming data with the same global index.
bool Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::isDistributed ( ) const [inherited]

Whether this is a globally distributed object.

For a definition of "globally distributed" (and its opposite, "locally replicated"), see the documentation of Map's isDistributed() method.

virtual Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > > Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::getMap ( ) const [inline, virtual, inherited]

The Map describing the parallel distribution of this object.

Note that some Tpetra objects might be distributed using multiple Map objects. For example, CrsMatrix has both a row Map and a column Map. It is up to the subclass to decide which Map to use when invoking the DistObject constructor.

Definition at line 316 of file Tpetra_DistObject_decl.hpp.

void Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::print ( std::ostream &  os) const [inherited]

Print this object to the given output stream.

We generally assume that all MPI processes can print to the given stream.

virtual void Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::removeEmptyProcessesInPlace ( const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > > &  newMap) [virtual, inherited]

Remove processes which contain no elements in this object's Map.

Warning:
This method is ONLY for use by experts. We highly recommend using the nonmember function of the same name defined in this file.
We make NO promises of backwards compatibility. This method may change or disappear at any time.

On input, this object is distributed over the Map returned by getMap() (the "original Map," with its communicator, the "original communicator"). The input newMap of this method must be the same as the result of calling getMap()->removeEmptyProcesses(). On processes in the original communicator which contain zero elements ("excluded processes," as opposed to "included processes"), the input newMap must be Teuchos::null (which is what getMap()->removeEmptyProcesses() returns anyway).

On included processes, reassign this object's Map (that would be returned by getMap()) to the input newMap, and do any work that needs to be done to restore correct semantics. On excluded processes, free any data that needs freeing, and do any other work that needs to be done to restore correct semantics.

This method has collective semantics over the original communicator. On exit, the only method of this object which is safe to call on excluded processes is the destructor. This implies that subclasses' destructors must not contain communication operations.

Returns:
The object's new Map. Its communicator is a new communicator, distinct from the old Map's communicator, which contains a subset of the processes in the old communicator.
Note:
The name differs from Map's method removeEmptyProcesses(), in order to emphasize that the operation on DistObject happens in place, modifying the input, whereas the operation removeEmptyProcess() on Map does not modify the input.
To implementers of DistObject subclasses: The default implementation of this class throws std::logic_error.
virtual size_t Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::constantNumberOfPackets ( ) const [protected, virtual, inherited]

Whether the implementation's instance promises always to have a constant number of packets per LID, and if so, how many packets per LID there are.

If this method returns zero, the instance says that it might possibly have a different number of packets for each LID to send or receive. If it returns nonzero, the instance promises that the number of packets is the same for all LIDs, and that the return value is this number of packets per LID.

The default implementation of this method returns zero. This does not affect the behavior of doTransfer() in any way. If a nondefault implementation returns nonzero, doTransfer() will use this information to avoid unnecessary allocation and / or resizing of arrays.

virtual void Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::doTransfer ( const SrcDistObject< GlobalOrdinal, LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > &  src,
CombineMode  CM,
size_t  numSameIDs,
const Teuchos::ArrayView< const LocalOrdinal > &  permuteToLIDs,
const Teuchos::ArrayView< const LocalOrdinal > &  permuteFromLIDs,
const Teuchos::ArrayView< const LocalOrdinal > &  remoteLIDs,
const Teuchos::ArrayView< const LocalOrdinal > &  exportLIDs,
Distributor distor,
ReverseOption  revOp 
) [protected, virtual, inherited]

Redistribute data across memory images.

Parameters:
src[in] The source object, to redistribute into the target object, which is *this object.
CM[in] The combine mode that describes how to combine values that map to the same global ID on the same process.
permuteToLIDs[in] See copyAndPermute().
permuteFromLIDs[in] See copyAndPermute().
remoteLIDs[in] List of entries (as local IDs) in the destination object to receive from other processes.
exportLIDs[in] See packAndPrepare().
distor[in/out] The Distributor object that knows how to redistribute data.
revOp[in] Whether to do a forward or reverse mode redistribution.
virtual void Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::createViews ( ) const [protected, virtual, inherited]

Hook for creating a const view.

doTransfer() calls this on the source object. By default, it does nothing, but the source object can use this as a hint to fetch data from a compute buffer on an off-CPU device (such as a GPU) into host memory.

virtual void Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::createViewsNonConst ( KokkosClassic::ReadWriteOption  rwo) [protected, virtual, inherited]

Hook for creating a nonconst view.

doTransfer() calls this on the destination (*this) object. By default, it does nothing, but the destination object can use this as a hint to fetch data from a compute buffer on an off-CPU device (such as a GPU) into host memory.

Parameters:
rwo[in] Whether to create a write-only or a read-and-write view. For Kokkos Node types where compute buffers live in a separate memory space (e.g., in the device memory of a discrete accelerator like a GPU), a write-only view only requires copying from host memory to the compute buffer, whereas a read-and-write view requires copying both ways (once to read, from the compute buffer to host memory, and once to write, back to the compute buffer).
virtual void Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::releaseViews ( ) const [protected, virtual, inherited]

Hook for releasing views.

doTransfer() calls this on both the source and destination objects, once it no longer needs to access that object's data. By default, this method does nothing. Implementations may use this as a hint to free host memory which is a view of a compute buffer, once the host memory view is no longer needed. Some implementations may prefer to mirror compute buffers in host memory; for these implementations, releaseViews() may do nothing.


Member Data Documentation

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP<const map_type> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::rowMap_ [protected]

The Map describing the distribution of rows of the graph.

Definition at line 1641 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP<const map_type> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::colMap_ [protected]

The Map describing the distribution of columns of the graph.

Definition at line 1643 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP<const map_type> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::rangeMap_ [protected]

The Map describing the range of the (matrix corresponding to the) graph.

Definition at line 1645 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP<const map_type> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::domainMap_ [protected]

The Map describing the domain of the (matrix corresponding to the) graph.

Definition at line 1647 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP<const import_type> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::importer_ [protected]

The Import from the domain Map to the column Map.

This gets constructed by fillComplete. It may be null if the domain Map and the column Map are the same, since no Import is necessary in that case for sparse matrix-vector multiply.

Definition at line 1655 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::RCP<const export_type> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::exporter_ [protected]

The Export from the row Map to the range Map.

This gets constructed by fillComplete. It may be null if the row Map and the range Map are the same, since no Export is necessary in that case for sparse matrix-vector multiply.

Definition at line 1662 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
LocalStaticCrsGraphType Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::k_lclGraph_ [protected]

Local graph; only initialized after first fillComplete() call.

Definition at line 1665 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
ProfileType Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::pftype_ [protected]

Whether the graph was allocated with static or dynamic profile.

Definition at line 1674 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Kokkos::DualView<const size_t*, Kokkos::LayoutLeft, device_type> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::k_numAllocPerRow_ [protected]

The maximum number of entries to allow in each locally owned row, per row.

This is an argument to some of the graph's constructors. Either this or numAllocForAllRows_ is used, but not both. allocateIndices, setAllIndices, and expertStaticFillComplete all deallocate this array (and the legacy view numAllocPerRow_) once they are done with it.

This array only exists on a process before the graph's indices are allocated on that process. After that point, it is discarded, since the graph's allocation implicitly or explicitly represents the same information.

FIXME (mfh 07 Aug 2014) We want graph's constructors to allocate, rather than doing lazy allocation at first insert. This will make both numAllocPerRow_ and numAllocForAllRows_ obsolete, so we don't have to make a Kokkos refactor version of numAllocPerRow_.

Definition at line 1695 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::ArrayRCP<const size_t> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::numAllocPerRow_ [protected]

Legacy Kokkos classic version of k_numAllocPerRow_.

This is just a view of k_numAllocPerRow_. We create views using Kokkos::Compat::persistingView, so the Kokkos::View won't get deallocated until the ArrayRCP's reference count goes to zero.

Definition at line 1703 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
size_t Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::numAllocForAllRows_ [protected]

The maximum number of entries to allow in each locally owned row.

This is an argument to some of the graph's constructors. Either this or numAllocPerRow_ is used, but not both.

FIXME (mfh 07 Aug 2014) We want graph's constructors to allocate, rather than doing lazy allocation at first insert. This will make both numAllocPerRow_ and numAllocForAllRows_ obsolete, so we don't have to make a Kokkos refactor version of numAllocPerRow_.

Definition at line 1715 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
t_LocalOrdinal_1D Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::k_lclInds1D_ [protected]

Local column indices for all rows.

This is only allocated if

  • The calling process has a nonzero number of entries
  • The graph has StaticProfile (1-D storage)
  • The graph is locally indexed

Definition at line 1727 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
t_GlobalOrdinal_1D Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::k_gblInds1D_ [protected]

Global column indices for all rows.

This is only allocated if

  • The calling process has a nonzero number of entries
  • The graph has StaticProfile (1-D storage)
  • The graph is globally indexed

Definition at line 1739 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::ArrayRCP<GlobalOrdinal> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::gblInds1D_ [protected]

Legacy Kokkos classic version of k_gblInds1D_.

This is just a view of k_gblInds1D_. We create views using Kokkos::Compat::persistingView, so the Kokkos::View won't get deallocated until the ArrayRCP's reference count goes to zero.

Definition at line 1746 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
t_RowPtrs Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::k_rowPtrs_ [protected]

Row offsets for "1-D" storage.

This is only allocated if "1-D" (StaticProfile) storage is active. In that case, if beg = k_rowPtrs_(i_lcl) and end = k_rowPtrs_(i_lcl+1) for local row index i_lcl, then

  • if the graph is locally indexed, k_lclInds1D_(beg:end-1) (inclusive range) is the space for any local column indices in local row i_lcl, else
  • if the graph is globally indexed, k_gblInds1D_(beg:end-1) (inclusive range) is the space for any global column indices in local row i_lcl.

Only the first k_numRowEntries_(i_lcl) of these entries are actual valid column indices. Any remaining entries are "extra space." If the graph's storage is packed, then there is no extra space, and the k_numRowEntries_ array is invalid.

Both the k_rowPtrs_ and k_numRowEntries_ arrays are not allocated if the graph has 2-D (DynamicProfile) storage.

If it is allocated, k_rowPtrs_ has length getNodeNumRows()+1. The k_numRowEntries_ array has has length getNodeNumRows(), again if it is allocated.

[we may delete this to save memory on fillComplete, if "Delete Row Pointers" is specified.]

Definition at line 1775 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::ArrayRCP<Teuchos::Array<LocalOrdinal> > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::lclInds2D_ [protected]

Local column indices for all rows.

This is only allocated if

  • The calling process has a nonzero number of entries
  • The graph has DynamicProfile (2-D storage)
  • The graph is locally indexed

In that case, if i_lcl is the local index of a locally owned row, then lclInds2D_[i_lcl] stores the local column indices for that row.

Definition at line 1802 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::ArrayRCP<Teuchos::Array<GlobalOrdinal> > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::gblInds2D_ [protected]

Global column indices for all rows.

This is only allocated if

  • The calling process has a nonzero number of entries
  • The graph has DynamicProfile (2-D storage)
  • The graph is globally indexed

In that case, if i_gbl is the global index of a globally owned row, then gblInds2D_[i_gbl] stores the global column indices for that row.

Definition at line 1815 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
t_numRowEntries_ Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::k_numRowEntries_ [protected]

The number of local entries in each locally owned row.

This is deallocated in fillComplete() if fillComplete()'s "Optimize Storage" parameter is set to true.

This may also exist with 1-D storage, if storage is unpacked.

Definition at line 1825 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Teuchos::ArrayRCP<size_t> Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::numRowEntries_ [protected]

Legacy Kokkos classic version of k_numRowEntries_.

This is just a view of k_numRowEntries_. We create views using Kokkos::Compat::persistingView, so the Kokkos::DualView won't get deallocated until the ArrayRCP's reference count goes to zero.

This may also exist with 1-D storage, if storage is unpacked.

Definition at line 1835 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
Details::EStorageStatus Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::storageStatus_ [protected]

Status of the graph's storage, when not in a fill-complete state.

The phrase "When not in a fill-complete state" is important. When the graph is fill complete, it always uses 1-D "packed" storage. However, if the "Optimize Storage" parameter to fillComplete was false, the graph may keep unpacked 1-D or 2-D storage around and resume it on the next resumeFill call.

Definition at line 1848 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::lowerTriangular_ [protected]

Whether the graph is locally lower triangular.

Definition at line 1856 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::upperTriangular_ [protected]

Whether the graph is locally upper triangular.

Definition at line 1858 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::indicesAreSorted_ [protected]

Whether the graph's indices are sorted in each row, on this process.

Definition at line 1860 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::noRedundancies_ [protected]

Whether the graph's indices are non-redundant (merged) in each row, on this process.

Definition at line 1863 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::haveLocalConstants_ [protected]

Whether this process has computed local constants.

Definition at line 1865 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::haveGlobalConstants_ [protected]

Whether all processes have computed global constants.

Definition at line 1867 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
std::map<GlobalOrdinal, std::vector<GlobalOrdinal> > Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::nonlocals_ [protected]

Nonlocal data given to insertGlobalValues or sumIntoGlobalValues.

Definition at line 1870 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

template<class LocalOrdinal , class GlobalOrdinal , class DeviceType >
bool Tpetra::CrsGraph< LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::sortGhostsAssociatedWithEachProcessor_ [protected]

Whether to require makeColMap() (and therefore fillComplete()) to order column Map GIDs associated with each remote process in ascending order.

makeColMap() always groups remote GIDs by process rank, so that all remote GIDs with the same owning rank occur contiguously. By default, it always sorts remote GIDs in increasing order within those groups. This behavior differs from Epetra, which does not sort remote GIDs with the same owning process.

This is true by default, which means "sort remote GIDs." If you don't want to sort (for compatibility with Epetra), call sortGhostColumnGIDsWithinProcessBlock(false).

Definition at line 1886 of file Tpetra_KokkosRefactor_CrsGraph_decl.hpp.

Teuchos::RCP<const Map<LocalOrdinal,GlobalOrdinal,Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > > > Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::map_ [protected, inherited]

The Map over which this object is distributed.

Definition at line 611 of file Tpetra_DistObject_decl.hpp.

Teuchos::Array<GlobalOrdinal > Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::imports_ [protected, inherited]

Buffer into which packed data are imported (received from other processes).

Definition at line 615 of file Tpetra_DistObject_decl.hpp.

Teuchos::Array<size_t> Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::numImportPacketsPerLID_ [protected, inherited]

Number of packets to receive for each receive operation.

This array is used in Distributor::doPosts() (and doReversePosts()) when starting the ireceive operation.

This may be ignored in doTransfer() if constantNumPackets is nonzero, indicating a constant number of packets per LID. (For example, MultiVector sets the constantNumPackets output argument of packAndPrepare() to the number of columns in the multivector.)

Definition at line 627 of file Tpetra_DistObject_decl.hpp.

Teuchos::Array<GlobalOrdinal > Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::exports_ [protected, inherited]

Buffer from which packed data are exported (sent to other processes).

Definition at line 630 of file Tpetra_DistObject_decl.hpp.

Teuchos::Array<size_t> Tpetra::DistObject< GlobalOrdinal , LocalOrdinal, GlobalOrdinal, Kokkos::Compat::KokkosDeviceWrapperNode< DeviceType > >::numExportPacketsPerLID_ [protected, inherited]

Number of packets to send for each send operation.

This array is used in Distributor::doPosts() (and doReversePosts()) for preparing for the send operation.

This may be ignored in doTransfer() if constantNumPackets is nonzero, indicating a constant number of packets per LID. (For example, MultiVector sets the constantNumPackets output argument of packAndPrepare() to the number of columns in the multivector.)

Definition at line 642 of file Tpetra_DistObject_decl.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines