File label_matrix_c_contiguous.hpp

Functions

std::unique_ptr<ICContiguousLabelMatrix> createCContiguousLabelMatrix(const uint8 *array, uint32 numRows, uint32 numCols)

Creates and returns a new object of the type ICContiguousLabelMatrix.

Parameters:
  • array – A pointer to a C-contiguous array of type uint8 that stores the labels

  • 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 ICContiguousLabelMatrix that has been created

class ICContiguousLabelMatrix : public IRowWiseLabelMatrix
#include <label_matrix_c_contiguous.hpp>

Defines an interface for all label matrices that provide row-wise access to the labels of individual examples that are stored in a C-contiguous array.

Public Functions

inline virtual ~ICContiguousLabelMatrix() override