Kokkos::CrsGraph< Ordinal, Node > Class Template Reference

Kokkos::CrsGraph: Kokkos compressed index sparse class. More...

#include <Kokkos_CrsGraph.hpp>

List of all members.

Public Member Functions

Constructors/Destructor
 CrsGraph (size_t numRows, const Teuchos::RCP< Node > &node=DefaultNode::getDefaultNode())
 Default CrsGraph constuctor.
 ~CrsGraph ()
 CrsGraph Destructor.
Accessor routines.
Teuchos::RCP< Node > getNode () const
 Node accessor.
Data entry and accessor methods.
void setPackedStructure (const Teuchos::ArrayRCP< const size_t > &offsets, const Teuchos::ArrayRCP< const Ordinal > &allinds)
 Submit the indices and offset for 1D storage.
void set2DIndices (size_t row, const Teuchos::ArrayRCP< const Ordinal > &rowinds)
 Submit the indices for one row of 2D storage.
Teuchos::ArrayRCP< const size_t > getPackedOffsets () const
 Retrieve the offsets for 1D storage.
Teuchos::ArrayRCP< const Ordinal > getPackedIndices () const
 Retrieve the indices for 1D storage.
Teuchos::ArrayRCP< const Ordinal > get2DIndices (size_t row) const
 Retrieve the indices for one row of 2D storage.
bool isPacked () const
 Indicates whether or not the graph entries are packed.
bool isEmpty () const
 Indicates that the graph is initialized, but empty.
void clear ()
 Release data associated with this graph.
size_t getNumRows () const
 Return the number of rows in the graph.


Detailed Description

template<class Ordinal, class Node = DefaultNode::DefaultNodeType>
class Kokkos::CrsGraph< Ordinal, Node >

Kokkos::CrsGraph: Kokkos compressed index sparse class.


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