Kokkos::CrsMatrix< Scalar, Node > Class Template Reference

Kokkos::CrsMatrix: Kokkos compressed index sparse matrix class. More...

#include <Kokkos_CrsMatrix.hpp>

List of all members.

Public Member Functions

Constructors/Destructor

 CrsMatrix (size_t numRows, const Teuchos::RCP< Node > &node=DefaultNode::getDefaultNode())
 Default CrsMatrix constuctor.
 ~CrsMatrix ()
 CrsMatrix Destructor.
Accessor routines.

Teuchos::RCP< Node > getNode () const
 Node accessor.
Data entry and accessor methods.

void setPackedValues (const Teuchos::ArrayRCP< const Scalar > &allvals)
 Submit the values for a 1D storage.
void set2DValues (size_t row, const Teuchos::ArrayRCP< const Scalar > &rowvals)
 Submit the values for one row of 2D storage.
Teuchos::ArrayRCP< const Scalar > getPackedValues () const
 Retrieve the values for a 1D storage.
Teuchos::ArrayRCP< const Scalar > get2DValues (size_t row) const
 Retrieve the values for one row of 2D storage.
bool isPacked () const
 Indicates whether or not the matrix entries are packed.
bool isEmpty () const
 Indicates that the matrix is initialized, but empty.
size_t getNumRows () const
 Return the number of rows in the matrix.
void clear ()
 Release data associated with this matrix.

Detailed Description

template<class Scalar, class Node = DefaultNode::DefaultNodeType>
class Kokkos::CrsMatrix< Scalar, Node >

Kokkos::CrsMatrix: Kokkos compressed index sparse matrix class.

Definition at line 45 of file Kokkos_CrsMatrix.hpp.


Constructor & Destructor Documentation

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

Default CrsMatrix constuctor.

Definition at line 115 of file Kokkos_CrsMatrix.hpp.

template<class Scalar , class Node >
Kokkos::CrsMatrix< Scalar, Node >::~CrsMatrix (  )  [inline]

CrsMatrix Destructor.

Definition at line 125 of file Kokkos_CrsMatrix.hpp.


Member Function Documentation

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

Node accessor.

Definition at line 130 of file Kokkos_CrsMatrix.hpp.

template<class Scalar , class Node >
void Kokkos::CrsMatrix< Scalar, Node >::setPackedValues ( const Teuchos::ArrayRCP< const Scalar > &  allvals  )  [inline]

Submit the values for a 1D storage.

Definition at line 146 of file Kokkos_CrsMatrix.hpp.

template<class Scalar , class Node >
void Kokkos::CrsMatrix< Scalar, Node >::set2DValues ( typename Node::size_t  row,
const Teuchos::ArrayRCP< const Scalar > &  rowvals 
) [inline]

Submit the values for one row of 2D storage.

Definition at line 160 of file Kokkos_CrsMatrix.hpp.

template<class Scalar , class Node >
Teuchos::ArrayRCP< const Scalar > Kokkos::CrsMatrix< Scalar, Node >::getPackedValues (  )  const [inline]

Retrieve the values for a 1D storage.

Definition at line 182 of file Kokkos_CrsMatrix.hpp.

template<class Scalar , class Node >
Teuchos::ArrayRCP< const Scalar > Kokkos::CrsMatrix< Scalar, Node >::get2DValues ( typename Node::size_t  row  )  const [inline]

Retrieve the values for one row of 2D storage.

Definition at line 193 of file Kokkos_CrsMatrix.hpp.

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

Indicates whether or not the matrix entries are packed.

Definition at line 205 of file Kokkos_CrsMatrix.hpp.

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

Indicates that the matrix is initialized, but empty.

Definition at line 211 of file Kokkos_CrsMatrix.hpp.

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

Return the number of rows in the matrix.

Definition at line 217 of file Kokkos_CrsMatrix.hpp.

template<class Scalar , class Node >
void Kokkos::CrsMatrix< Scalar, Node >::clear (  )  [inline]

Release data associated with this matrix.

Definition at line 136 of file Kokkos_CrsMatrix.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