File label_matrix_csr.hpp¶
Functions
-
std::unique_ptr<ICsrLabelMatrix> createCsrLabelMatrix(uint32 *indices, uint32 *indptr, uint32 numRows, uint32 numCols)¶
Creates and returns a new object of the type
ICsrLabelMatrix.- Parameters:
indices – A pointer to an array of type
uint32, shape(numDenseElements), that stores the column indices of all dense elements explicitly stored in the matrixindptr – A pointer to an array of type
uint32, shape(numRows + 1), that stores the indices of the first element inindicesthat corresponds to a certain row. The index at the last position is equal tonumDenseElementsnumRows – The number of rows in the label matrix
numCols – The number of columns in the label matrix
- Returns:
An unique pointer to an object of type
ICsrLabelMatrixthat has been created
-
class ICsrLabelMatrix : public virtual IRowWiseLabelMatrix¶
- #include <label_matrix_csr.hpp>
Defines an interface for all label matrices that provide row-wise access to the labels of individual examples that are stored in a sparse matrix in the compressed sparse row (CSR) format.
Public Functions
-
inline virtual ~ICsrLabelMatrix() override¶
-
inline virtual ~ICsrLabelMatrix() override¶