|
| 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 |
|
template<typename OutputType > |
void | FillRow (size_t row_id, OutputType *out) const |
|
template<typename OutputType > |
void | ClearRow (size_t row_id, OutputType *out) const |
|
TypeInfo | GetElementType () const override |
|
|
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)
|
|
|
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) |
|
template<typename ElementType>
class treelite::CSRDMatrixImpl< ElementType >
Definition at line 109 of file data.h.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/treelite/checkouts/3.1.0/include/treelite/data.h
- /home/docs/checkouts/readthedocs.org/user_builds/treelite/checkouts/3.1.0/src/data.cc