Turi Create
4.0
|
#include <toolkits/util/spmat.hpp>
Public Member Functions | |
spmat (size_t num_rows=0) | |
const std::map< size_t, size_t > & | get_row (size_t i) |
size_t | get (const size_t i, const size_t j) |
size_t | num_rows () const |
void | trim (const size_t i) |
void | increment (const size_t &a, const size_t &b, const size_t &v) |
Eigen::MatrixXi | as_matrix () |
A simple utility class for representing sparse matrices of counts. It exposes getting particular elements, incrementing elements by a value, and removing zero elements from the internal data structure. It is row-based, so only exposes get_row and num_rows.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |