graph
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | Private Attributes | Friends | List of all members
COOView< Index > Class Template Reference

a read-only view of a COO suitable for passing to a GPU kernel by value. More...

#include <coo.hpp>

Public Member Functions

HOST DEVICE uint64_t nnz () const
 
HOST DEVICE uint64_t num_rows () const
 
const Index * row_ptr () const
 row offset array More...
 
const Index * col_ind () const
 column index array More...
 
const Index * row_ind () const
 

Public Attributes

const Index * rowPtr_
 offset in col_ that each row starts at More...
 
const Index * rowInd_
 non-zero row indices More...
 
const Index * colInd_
 non-zero column indices More...
 

Private Attributes

uint64_t nnz_
 number of non-zeros More...
 
uint64_t num_rows_
 length of rowOffset - 1 More...
 

Friends

class COO< Index >
 

Detailed Description

template<typename Index>
class COOView< Index >

a read-only view of a COO suitable for passing to a GPU kernel by value.

Any modifications to the underlying COO may invalidate this view.

Member Function Documentation

◆ col_ind()

template<typename Index>
const Index* COOView< Index >::col_ind ( ) const
inline

column index array

◆ nnz()

template<typename Index>
HOST DEVICE uint64_t COOView< Index >::nnz ( ) const
inline

◆ num_rows()

template<typename Index>
HOST DEVICE uint64_t COOView< Index >::num_rows ( ) const
inline

◆ row_ind()

template<typename Index>
const Index* COOView< Index >::row_ind ( ) const
inline

◆ row_ptr()

template<typename Index>
const Index* COOView< Index >::row_ptr ( ) const
inline

row offset array

Friends And Related Function Documentation

◆ COO< Index >

template<typename Index>
friend class COO< Index >
friend

Member Data Documentation

◆ colInd_

template<typename Index>
const Index* COOView< Index >::colInd_

non-zero column indices

◆ nnz_

template<typename Index>
uint64_t COOView< Index >::nnz_
private

number of non-zeros

◆ num_rows_

template<typename Index>
uint64_t COOView< Index >::num_rows_
private

length of rowOffset - 1

◆ rowInd_

template<typename Index>
const Index* COOView< Index >::rowInd_

non-zero row indices

◆ rowPtr_

template<typename Index>
const Index* COOView< Index >::rowPtr_

offset in col_ that each row starts at


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