PLearn 0.1
|
#include <SparseVMatrix.h>
Public Member Functions | |
SparseVMatrixRow () | |
Public Attributes | |
int | nelements |
number of non zero elements in row | |
int | row_startpos |
index of first element of this row in both the positions and the values arrays |
Like MemoryVMatrix this class holds the data in memory. But it is designed to keep a compact representation of sparse matrices, keeping for each row only the position and values of the non-zero elements. The values are stored as floats regardless whether we ar in USEFLOAT or USEDOUBLE mode.
Definition at line 60 of file SparseVMatrix.h.
PLearn::SparseVMatrixRow::SparseVMatrixRow | ( | ) | [inline] |
Definition at line 65 of file SparseVMatrix.h.
: nelements(0), row_startpos(0) {}
number of non zero elements in row
Definition at line 63 of file SparseVMatrix.h.
Referenced by PLearn::SparseVMatrix::dot(), PLearn::SparseVMatrix::getNewRow(), and PLearn::SparseVMatrix::SparseVMatrix().
index of first element of this row in both the positions and the values arrays
Definition at line 64 of file SparseVMatrix.h.
Referenced by PLearn::SparseVMatrix::dot(), PLearn::SparseVMatrix::getNewRow(), and PLearn::SparseVMatrix::SparseVMatrix().