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.

Definition at line 45 of file Kokkos_CrsGraph.hpp.


Constructor & Destructor Documentation

template<class Ordinal , class Node >
Kokkos::CrsGraph< Ordinal, Node >::CrsGraph ( typename Node::size_t  numRows,
const Teuchos::RCP< Node > &  node = DefaultNode::getDefaultNode() 
) [inline]

Default CrsGraph constuctor.

Definition at line 120 of file Kokkos_CrsGraph.hpp.

template<class Ordinal , class Node >
Kokkos::CrsGraph< Ordinal, Node >::~CrsGraph (  )  [inline]

CrsGraph Destructor.

Definition at line 130 of file Kokkos_CrsGraph.hpp.


Member Function Documentation

template<class Ordinal , class Node >
Teuchos::RCP< Node > Kokkos::CrsGraph< Ordinal, Node >::getNode (  )  const [inline]

Node accessor.

Definition at line 135 of file Kokkos_CrsGraph.hpp.

template<class Ordinal , class Node >
void Kokkos::CrsGraph< Ordinal, Node >::setPackedStructure ( const Teuchos::ArrayRCP< const size_t > &  offsets,
const Teuchos::ArrayRCP< const Ordinal > &  allinds 
) [inline]

Submit the indices and offset for 1D storage.

Definition at line 152 of file Kokkos_CrsGraph.hpp.

template<class Ordinal , class Node >
void Kokkos::CrsGraph< Ordinal, Node >::set2DIndices ( typename Node::size_t  row,
const Teuchos::ArrayRCP< const Ordinal > &  rowinds 
) [inline]

Submit the indices for one row of 2D storage.

Definition at line 168 of file Kokkos_CrsGraph.hpp.

template<class Ordinal , class Node >
Teuchos::ArrayRCP< const typename Node::size_t > Kokkos::CrsGraph< Ordinal, Node >::getPackedOffsets (  )  const [inline]

Retrieve the offsets for 1D storage.

Definition at line 232 of file Kokkos_CrsGraph.hpp.

template<class Ordinal , class Node >
Teuchos::ArrayRCP< const Ordinal > Kokkos::CrsGraph< Ordinal, Node >::getPackedIndices (  )  const [inline]

Retrieve the indices for 1D storage.

Definition at line 190 of file Kokkos_CrsGraph.hpp.

template<class Ordinal , class Node >
Teuchos::ArrayRCP< const Ordinal > Kokkos::CrsGraph< Ordinal, Node >::get2DIndices ( typename Node::size_t  row  )  const [inline]

Retrieve the indices for one row of 2D storage.

Definition at line 201 of file Kokkos_CrsGraph.hpp.

template<class Ordinal , class Node >
bool Kokkos::CrsGraph< Ordinal, Node >::isPacked (  )  const [inline]

Indicates whether or not the graph entries are packed.

Definition at line 213 of file Kokkos_CrsGraph.hpp.

template<class Ordinal , class Node >
bool Kokkos::CrsGraph< Ordinal, Node >::isEmpty (  )  const [inline]

Indicates that the graph is initialized, but empty.

Definition at line 219 of file Kokkos_CrsGraph.hpp.

template<class Ordinal , class Node >
void Kokkos::CrsGraph< Ordinal, Node >::clear (  )  [inline]

Release data associated with this graph.

Definition at line 141 of file Kokkos_CrsGraph.hpp.

template<class Ordinal , class Node >
Node::size_t Kokkos::CrsGraph< Ordinal, Node >::getNumRows (  )  const [inline]

Return the number of rows in the graph.

Definition at line 225 of file Kokkos_CrsGraph.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
Generated on Wed Apr 13 09:59:49 2011 for Kokkos Node API and Local Linear Algebra Kernels by  doxygen 1.6.3