#include <sparse.hpp>
Public Types | |
typedef SimpleMat< T > | Super |
Public Member Functions | |
SimpleSparseMat () | |
SimpleSparseMat (T *values, I *cols, I *row_ids, I nnz, int m, int n) | |
void | print (std::ostream &oss) const override |
void | operator= (const SimpleSparseMat< T, I > &other)=delete |
void | gemmb (const raft::handle_t &handle, const T alpha, const SimpleDenseMat< T > &A, const bool transA, const bool transB, const T beta, SimpleDenseMat< T > &C, cudaStream_t stream) const override |
Public Member Functions inherited from ML::SimpleMat< T > | |
SimpleMat (int m, int n) | |
void | operator= (const SimpleMat< T > &other)=delete |
Public Attributes | |
T * | values |
I * | cols |
I * | row_ids |
I | nnz |
Public Attributes inherited from ML::SimpleMat< T > | |
int | m |
int | n |
Sparse matrix in CSR format.
Note, we use cuSPARSE to manimulate matrices, and it guarantees:
However, when the data comes from the outside, we cannot guarantee that.
typedef SimpleMat<T> ML::SimpleSparseMat< T, I >::Super |
|
inline |
|
inline |
|
inlineoverridevirtual |
GEMM assigning to C where this
refers to B.
Implements ML::SimpleMat< T >.
|
delete |
|
inlineoverridevirtual |
Implements ML::SimpleMat< T >.
I* ML::SimpleSparseMat< T, I >::cols |
I ML::SimpleSparseMat< T, I >::nnz |
I* ML::SimpleSparseMat< T, I >::row_ids |
T* ML::SimpleSparseMat< T, I >::values |