Kokkos Node API and Local Linear Algebra Kernels Version of the Day
Public Member Functions
Kokkos::DefaultCrsGraph< Ordinal, Node > Class Template Reference

Default implementation of CRS sparse graph, using generic kernels and suitable for host-based nodes. More...

#include <Kokkos_DefaultSparseOps.hpp>

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

List of all members.

Public Member Functions

void setStructure (const ArrayRCP< const size_t > &ptrs, const ArrayRCP< const Ordinal > &inds)
 Submit the indices and offset for the graph.
Data entry and accessor methods.
RCP< Node > getNode () const
Ordinal getNumRows () const
 Return the number of rows in the graph.
Ordinal getNumCols () const
 Return the number of columns in the graph.

Detailed Description

template<class Ordinal, class Node>
class Kokkos::DefaultCrsGraph< Ordinal, Node >

Default implementation of CRS sparse graph, using generic kernels and suitable for host-based nodes.

Definition at line 161 of file Kokkos_DefaultSparseOps.hpp.


Member Function Documentation

template<class Ordinal , class Node >
void Kokkos::DefaultCrsGraph< Ordinal, Node >::setStructure ( const ArrayRCP< const size_t > &  ptrs,
const ArrayRCP< const Ordinal > &  inds 
) [virtual]

Submit the indices and offset for the graph.

Precondition:
indices for row r are inds[r], where $r \in [b,e)$, where $b = ptrs[r]$ and $e = ptrs[r-1]$
ptrs has getNumRows()+1 entries
ptrs[0] == 0
ptrs[getNumRows()] == inds.size()

Implements Kokkos::CrsGraphBase< Ordinal, Node >.

Definition at line 218 of file Kokkos_DefaultSparseOps.hpp.

template<class Ordinal , class Node >
Ordinal Kokkos::CrsGraphBase< Ordinal, Node >::getNumRows ( ) const [inherited]

Return the number of rows in the graph.

Definition at line 131 of file Kokkos_CrsGraphBase.hpp.

template<class Ordinal , class Node >
Ordinal Kokkos::CrsGraphBase< Ordinal, Node >::getNumCols ( ) const [inherited]

Return the number of columns in the graph.

Definition at line 137 of file Kokkos_CrsGraphBase.hpp.


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