SparseVector Class Reference

a sparse vector data structure More...

#include <OSDataStructures.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 118 of file OSDataStructures.h.


Constructor & Destructor Documentation

SparseVector::SparseVector ( int  number  ) 

Constructor.

Parameters:
number holds the size of the vector.

Definition at line 25 of file OSDataStructures.cpp.

References bDeleteArrays, indexes, number, and values.

SparseVector::SparseVector (  ) 

Default Constructor.

Definition at line 34 of file OSDataStructures.cpp.

SparseVector::~SparseVector (  ) 

Default destructor.

Definition at line 41 of file OSDataStructures.cpp.

References bDeleteArrays, indexes, and values.


Member Data Documentation

bool SparseVector::bDeleteArrays

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

Definition at line 144 of file OSDataStructures.h.

Referenced by OSInstance::calculateConstraintFunctionGradient(), main(), SparseVector(), and ~SparseVector().

int SparseVector::number

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

Definition at line 149 of file OSDataStructures.h.

Referenced by OSInstance::calculateConstraintFunctionGradient(), OSInstance::calculateFunctionValue(), OSInstance::getDenseObjectiveCoefficients(), main(), OSInstance::processObjectives(), and SparseVector().

int* SparseVector::indexes

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

Definition at line 154 of file OSDataStructures.h.

Referenced by OSInstance::calculateConstraintFunctionGradient(), OSInstance::calculateFunctionValue(), OSnl2osil::createOSInstance(), OSmps2osil::createOSInstance(), OSMatlab::createOSInstance(), OSInstance::getDenseObjectiveCoefficients(), main(), OSInstance::processObjectives(), SparseVector(), and ~SparseVector().

double* SparseVector::values

values holds a double array of nonzero values.

Definition at line 159 of file OSDataStructures.h.

Referenced by OSInstance::calculateConstraintFunctionGradient(), OSInstance::calculateFunctionValue(), OSnl2osil::createOSInstance(), OSmps2osil::createOSInstance(), OSMatlab::createOSInstance(), OSInstance::getDenseObjectiveCoefficients(), main(), OSInstance::processObjectives(), SparseVector(), and ~SparseVector().


The documentation for this class was generated from the following files:
Generated on Sat Mar 29 22:38:06 2008 by  doxygen 1.5.3