Class CSR¶
Defined in File sparse.h
Class Documentation¶
-
class
CSR
¶ Public Functions
-
CSR
(int rows, int cols, const std::vector<float> &values, const std::vector<int> &rowIndices, const std::vector<int> &colIndices, Ptr<Backend> backend)¶
-
CSR
(Tensor dense)¶
-
~CSR
()¶
-
void
toTensor
(Tensor dense)¶
-
cusparseHandle_t
handle
()¶
-
cusparseMatDescr_t
description
()¶
-
int
nnz
()¶
-
int
rows
()¶
-
int
cols
()¶
-
float *
values
()¶
-
int *
rowIndices
()¶
-
int *
colIndices
()¶
-
void
allocValues
(int nnz = 0)¶
-
void
allocRowIndices
(int rows = 0)¶
-
void
allocColIndices
(int nnz = 0)¶
-