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

#include <KokkosExamples_EmptySparseKernelClass.hpp>

Inheritance diagram for KokkosExamples::EmptyCrsGraph< Node >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Detailed Description

template<class Node>
class KokkosExamples::EmptyCrsGraph< Node >

This is based off Kokkos::CrsGraphBase to ease our obligations.

Definition at line 70 of file KokkosExamples_EmptySparseKernelClass.hpp.


Member Function Documentation

template<class Node>
void KokkosExamples::EmptyCrsGraph< Node >::setStructure ( const ArrayRCP< const size_t > &  ptrs,
const ArrayRCP< const int > &  inds 
) [inline, 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< int, Node >.

Definition at line 74 of file KokkosExamples_EmptySparseKernelClass.hpp.

int Kokkos::CrsGraphBase< int , Node >::getNumRows ( ) const [inherited]

Return the number of rows in the graph.

int Kokkos::CrsGraphBase< int , Node >::getNumCols ( ) const [inherited]

Return the number of columns in the graph.


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