SparseVector Class Reference

a sparse vector data structure More...

#include <OSGeneral.h>

List of all members.

Public Member Functions

 SparseVector (int number)
 Constructor.
 SparseVector ()
 Default Constructor.
 ~SparseVector ()
 Default destructor.

Public Attributes

bool bDeleteArrays
 bDeleteArrays is true if we delete the arrays in garbage collection set to true by default
int number
 number is the number of elements in the indexes and values arrays.
int * indexes
 indexes holds an integer array of indexes, which corresponding values are nonzero.
double * values
 values holds a double array of nonzero values.

Detailed Description

a sparse vector data structure

Definition at line 112 of file OSGeneral.h.


Constructor & Destructor Documentation

SparseVector::SparseVector ( int  number  ) 

Constructor.

Parameters:
number holds the size of the vector.

Definition at line 126 of file OSGeneral.cpp.

SparseVector::SparseVector (  ) 

Default Constructor.

Definition at line 135 of file OSGeneral.cpp.

SparseVector::~SparseVector (  ) 

Default destructor.

Definition at line 142 of file OSGeneral.cpp.


Member Data Documentation

bDeleteArrays is true if we delete the arrays in garbage collection set to true by default

Definition at line 139 of file OSGeneral.h.

number is the number of elements in the indexes and values arrays.

Definition at line 144 of file OSGeneral.h.

indexes holds an integer array of indexes, which corresponding values are nonzero.

Definition at line 149 of file OSGeneral.h.

values holds a double array of nonzero values.

Definition at line 154 of file OSGeneral.h.


The documentation for this class was generated from the following files:

Generated on 22 May 2012 by  doxygen 1.6.1