cuML C++ API
23.12
|
#include <sparse.hpp>
Public Types | |
typedef SimpleMat< T > | Super |
Public Member Functions | |
SimpleSparseMat () | |
SimpleSparseMat (T *values, int *cols, int *row_ids, int nnz, int m, int n) | |
void | print (std::ostream &oss) const override |
void | operator= (const SimpleSparseMat< T > &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 |
![]() | |
SimpleMat (int m, int n) | |
void | operator= (const SimpleMat< T > &other)=delete |
Public Attributes | |
T * | values |
int * | cols |
int * | row_ids |
int | nnz |
![]() | |
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 >::Super |
|
inline |
|
inline |
|
inlineoverridevirtual |
GEMM assigning to C where this
refers to B.
Implements ML::SimpleMat< T >.
|
delete |
|
inlineoverridevirtual |
Implements ML::SimpleMat< T >.
int* ML::SimpleSparseMat< T >::cols |
int ML::SimpleSparseMat< T >::nnz |
int* ML::SimpleSparseMat< T >::row_ids |
T* ML::SimpleSparseMat< T >::values |