PLearn 0.1
Public Member Functions | Public Attributes
PLearn::SparseVMatrixRow Class Reference

#include <SparseVMatrix.h>

Collaboration diagram for PLearn::SparseVMatrixRow:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

PLearn::SparseVMatrixRow::SparseVMatrixRow ( ) [inline]

Definition at line 65 of file SparseVMatrix.h.

: nelements(0), row_startpos(0) {}

Member Data Documentation

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().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines