Kokkos Node API and Local Linear Algebra Kernels Version of the Day
Kokkos::CrsMatrixBase< Scalar, Ordinal, Node > Class Template Reference

An abstract base class providing a template for Kokkos-level sparse matrix objects.The matrix data is packed into a single contiguous array. The array is of length num-total-nonzeros. Two auxiliary arrays give indices to the beginning of each row, according to the standard compressed sparse row (CSR) format. More...

#include <Kokkos_CrsMatrixBase.hpp>

Inheritance diagram for Kokkos::CrsMatrixBase< Scalar, Ordinal, Node >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Constructors/Destructor
 CrsMatrixBase (const RCP< const CrsGraphBase< Ordinal, Node > > &graph, const RCP< ParameterList > &params)
 Constructor.
virtual ~CrsMatrixBase ()
 CrsMatrixBase Destructor.
Data entry and accessor methods.
virtual void setValues (const ArrayRCP< const Scalar > &vals)=0
 Submit the matrix values.

Detailed Description

template<class Scalar, class Ordinal, class Node>
class Kokkos::CrsMatrixBase< Scalar, Ordinal, Node >

An abstract base class providing a template for Kokkos-level sparse matrix objects.

The matrix data is packed into a single contiguous array. The array is of length num-total-nonzeros. Two auxiliary arrays give indices to the beginning of each row, according to the standard compressed sparse row (CSR) format.

Template Parameters:
ScalarDefines the type of the matrix valeus; same as the Scalar template parameter of the encapsulating Tpetra::CrsMatrix object.
OrdinalDefines the type of the column indices; same as the LocalOrdinal template parameter of the encapsulating Tpetra::CrsMatrix object.
NodeKokkos Node type; same as the Node template parameter of the encapsulating Tpetra::CrsMatrix object.

Definition at line 68 of file Kokkos_CrsMatrixBase.hpp.


Constructor & Destructor Documentation

template<class Scalar , class Ordinal, class Node>
Kokkos::CrsMatrixBase< Scalar, Ordinal, Node >::CrsMatrixBase ( const RCP< const CrsGraphBase< Ordinal, Node > > &  graph,
const RCP< ParameterList > &  params 
)

Constructor.

Definition at line 107 of file Kokkos_CrsMatrixBase.hpp.

template<class Scalar , class Ordinal , class Node >
Kokkos::CrsMatrixBase< Scalar, Ordinal, Node >::~CrsMatrixBase ( ) [virtual]

CrsMatrixBase Destructor.

Definition at line 116 of file Kokkos_CrsMatrixBase.hpp.


Member Function Documentation

template<class Scalar, class Ordinal, class Node>
virtual void Kokkos::CrsMatrixBase< Scalar, Ordinal, Node >::setValues ( const ArrayRCP< const Scalar > &  vals) [pure virtual]

Submit the matrix values.

Must be congruous with the associated graph.

This is used by Tpetra.

Implemented in Kokkos::CUSPARSECrsMatrix< Scalar, Node >, Kokkos::CuspCrsMatrix< Scalar, Ordinal, Node >, Kokkos::DefaultCrsMatrix< Scalar, Ordinal, Node >, and KokkosExamples::EmptyCrsMatrix< Scalar, Node >.


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