Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

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.

References nelements, and row_startpos.


Member Data Documentation

int PLearn::SparseVMatrixRow::nelements
 

number of non zero elements in row

Definition at line 63 of file SparseVMatrix.h.

Referenced by PLearn::SparseVMatrix::dot(), PLearn::SparseVMatrix::getNewRow(), PLearn::SparseVMatrix::SparseVMatrix(), and SparseVMatrixRow().

int PLearn::SparseVMatrixRow::row_startpos
 

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(), PLearn::SparseVMatrix::SparseVMatrix(), and SparseVMatrixRow().


The documentation for this class was generated from the following file:
Generated on Tue Aug 17 16:26:46 2004 for PLearn by doxygen 1.3.7