clSPARSE  v0.10.0.0
a software library containing Sparse functions written in OpenCL
List of all members
clsparseCooMatrix Struct Reference

Structure to encapsulate sparse matrix data encoded in COO form to clSPARSE API. More...

#include <clSPARSE-1x.h>

Public Attributes

COO matrix data
clsparseIdx_t num_rows
 
clsparseIdx_t num_cols
 
clsparseIdx_t num_nonzeros
 
OpenCL state
cl_mem values
 
cl_mem col_indices
 
cl_mem row_indices
 
void * values
 
void * col_indices
 
void * row_indices
 
Buffer offsets
clsparseIdx_t off_values
 
clsparseIdx_t off_col_indices
 
clsparseIdx_t off_row_indices
 

Detailed Description

Structure to encapsulate sparse matrix data encoded in COO form to clSPARSE API.

Note
The indices stored are 0-based
It is the users responsibility to allocate/deallocate OpenCL buffers

Member Data Documentation

void* clsparseCooMatrix::col_indices

column index for corresponding element; array size num_nonzeros

cl_mem clsparseCooMatrix::col_indices

column index for corresponding element; array size num_nonzeros

clsparseIdx_t clsparseCooMatrix::num_cols

Number of columns this matrix has if viewed as dense

clsparseIdx_t clsparseCooMatrix::num_nonzeros

Number of values in matrix that are non-zero

clsparseIdx_t clsparseCooMatrix::num_rows

Number of rows this matrix has if viewed as dense

clsparseIdx_t clsparseCooMatrix::off_col_indices

Given that cl_mem objects are opaque without pointer arithmetic, these offsets are added to the cl_mem locations on device to define beginning of the data in the cl_mem buffers

clsparseIdx_t clsparseCooMatrix::off_row_indices

Given that cl_mem objects are opaque without pointer arithmetic, these offsets are added to the cl_mem locations on device to define beginning of the data in the cl_mem buffers

clsparseIdx_t clsparseCooMatrix::off_values

Given that cl_mem objects are opaque without pointer arithmetic, these offsets are added to the cl_mem locations on device to define beginning of the data in the cl_mem buffers

void* clsparseCooMatrix::row_indices

row index for corresponding element; array size num_nonzeros

cl_mem clsparseCooMatrix::row_indices

row index for corresponding element; array size num_nonzeros

void* clsparseCooMatrix::values

CSR non-zero values of size num_nonzeros

cl_mem clsparseCooMatrix::values

CSR non-zero values of size num_nonzeros


The documentation for this struct was generated from the following files: