SparseMatrix Class Reference

a sparse matrix data structure More...

#include <OSDataStructures.h>

List of all members.

Public Member Functions

 SparseMatrix ()
 Default constructor.
 SparseMatrix (bool isColumnMajor_, int startSize, int valueSize)
 Constructor.
 ~SparseMatrix ()
 Default destructor.
bool display (int secondaryDim)
 This method displays data structure in the matrix format.

Public Attributes

bool bDeleteArrays
 bDeleteArrays is true if we delete the arrays in garbage collection set to true by default
bool isColumnMajor
 isColumnMajor holds whether the coefMatrix (AMatrix) holding linear program data is stored by column.
int startSize
 startSize is the dimension of the starts array
int valueSize
 valueSize is the dimension of the starts array
int * starts
 starts holds an integer array of start elements in coefMatrix (AMatrix), which points to the start of a column (row) of nonzero elements in coefMatrix (AMatrix).
int * indexes
 indexes holds an integer array of rowIdx (or colIdx) elements in coefMatrix (AMatrix).
double * values
 values holds a double array of value elements in coefMatrix (AMatrix), which contains nonzero elements.

Detailed Description

a sparse matrix data structure

Definition at line 41 of file OSDataStructures.h.


Constructor & Destructor Documentation

SparseMatrix::SparseMatrix (  ) 

Default constructor.

SparseMatrix::SparseMatrix ( bool  isColumnMajor_,
int  startSize,
int  valueSize 
)

Constructor.

Parameters:
isColumnMajor holds whether the coefMatrix (AMatrix) holding linear program data is stored by column. If false, the matrix is stored by row.
startSize holds the size of the start array.
valueSize holds the size of the value and index arrays.
SparseMatrix::~SparseMatrix (  ) 

Default destructor.


Member Function Documentation

bool SparseMatrix::display ( int  secondaryDim  ) 

This method displays data structure in the matrix format.

Returns:

Member Data Documentation

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

Definition at line 48 of file OSDataStructures.h.

isColumnMajor holds whether the coefMatrix (AMatrix) holding linear program data is stored by column.

If false, the matrix is stored by row.

Definition at line 54 of file OSDataStructures.h.

startSize is the dimension of the starts array

Definition at line 59 of file OSDataStructures.h.

valueSize is the dimension of the starts array

Definition at line 64 of file OSDataStructures.h.

starts holds an integer array of start elements in coefMatrix (AMatrix), which points to the start of a column (row) of nonzero elements in coefMatrix (AMatrix).

Definition at line 70 of file OSDataStructures.h.

indexes holds an integer array of rowIdx (or colIdx) elements in coefMatrix (AMatrix).

If the matrix is stored by column (row), rowIdx (colIdx) is the array of row (column) indices.

Definition at line 76 of file OSDataStructures.h.

values holds a double array of value elements in coefMatrix (AMatrix), which contains nonzero elements.

Definition at line 82 of file OSDataStructures.h.


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

Generated on 15 Mar 2015 for Coin-All by  doxygen 1.6.1