Treelite
|
Public Member Functions | |
CSRDMatrixImpl (std::vector< ElementType > data, std::vector< uint32_t > col_ind, std::vector< size_t > row_ptr, size_t num_row, size_t num_col) | |
CSRDMatrixImpl (const CSRDMatrixImpl &)=default | |
CSRDMatrixImpl (CSRDMatrixImpl &&) noexcept=default | |
CSRDMatrixImpl & | operator= (const CSRDMatrixImpl &)=default |
CSRDMatrixImpl & | operator= (CSRDMatrixImpl &&) noexcept=default |
size_t | GetNumRow () const override |
size_t | GetNumCol () const override |
size_t | GetNumElem () const override |
DMatrixType | GetType () const override |
![]() | |
TypeInfo | GetElementType () const override |
Public Attributes | |
std::vector< ElementType > | data |
feature values | |
std::vector< uint32_t > | col_ind |
feature indices. col_ind[i] indicates the feature index associated with data[i]. | |
std::vector< size_t > | row_ptr |
pointer to row headers; length is [num_row] + 1. | |
size_t | num_row |
number of rows | |
size_t | num_col |
number of columns (i.e. # of features used) | |
Friends | |
class | CSRDMatrix |
Additional Inherited Members | |
![]() | |
template<typename ElementType > | |
static std::unique_ptr< CSRDMatrix > | Create (std::vector< ElementType > data, std::vector< uint32_t > col_ind, std::vector< size_t > row_ptr, size_t num_row, size_t num_col) |
template<typename ElementType > | |
static std::unique_ptr< CSRDMatrix > | Create (const void *data, const uint32_t *col_ind, const size_t *row_ptr, size_t num_row, size_t num_col) |
static std::unique_ptr< CSRDMatrix > | Create (TypeInfo type, const void *data, const uint32_t *col_ind, const size_t *row_ptr, size_t num_row, size_t num_col) |
static std::unique_ptr< CSRDMatrix > | Create (const char *filename, const char *format, const char *data_type, int nthread, int verbose) |