clSPARSE  v0.10.0.0
a software library containing Sparse functions written in OpenCL
Public Attributes | List of all members
cldenseMatrix Struct Reference

Structure to encapsulate dense matrix data to clSPARSE API. More...

#include <clSPARSE-1x.h>

Public Attributes

cl_mem values
 
clsparseIdx_t off_values
 
void * values
 
Dense matrix data
clsparseIdx_t num_rows
 
clsparseIdx_t num_cols
 
clsparseIdx_t lead_dim
 
cldenseMajor major
 

Detailed Description

Structure to encapsulate dense matrix data to clSPARSE API.

Note
It is the users responsibility to allocate/deallocate OpenCL buffers

Member Data Documentation

clsparseIdx_t cldenseMatrix::lead_dim

Number of rows

cldenseMajor cldenseMatrix::major

Stride to the next row or column, in units of elements

clsparseIdx_t cldenseMatrix::num_cols

Number of columns

clsparseIdx_t cldenseMatrix::num_rows

Number of rows

clsparseIdx_t cldenseMatrix::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* cldenseMatrix::values

Memory layout for dense matrix Array of matrix values

cl_mem cldenseMatrix::values

Memory layout for dense matrix Array of matrix values


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