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.


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