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(numNonZeroValues)
, that stores the column-indices, the relevant labels correspond toindptr – A pointer to an array of type
uint32
, shape(numRows + 1)
, that stores the indices of the first element inindices
that corresponds to a certain row. The index at the last position is equal tonumNonZeroValues
numRows – 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
ICsrLabelMatrix
that 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¶