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

CRS sparse graph class supporting the CUSPARSE library. More...

#include <Kokkos_CUSPARSEOps.hpp>

Inheritance diagram for Kokkos::CUSPARSECrsGraph< Node >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Detailed Description

template<class Node>
class Kokkos::CUSPARSECrsGraph< Node >

CRS sparse graph class supporting the CUSPARSE library.

Definition at line 321 of file Kokkos_CUSPARSEOps.hpp.


Member Function Documentation

template<class Node >
void Kokkos::CUSPARSECrsGraph< Node >::setStructure ( const ArrayRCP< const size_t > &  ptrs,
const ArrayRCP< const int > &  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< int, Node >.

Definition at line 396 of file Kokkos_CUSPARSEOps.hpp.

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

Return the number of rows in the graph.


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