|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.optimizationservices.oscommon.datastructure.osgeneral.SparseMatrix
public class SparseMatrix
The SparseMatrix
class holds the 3 list
data structure usually used for linear constraint coefficients
Field Summary | |
---|---|
int[] |
indexes
indexes holds an integer array of rowIdx (or colIdx) elements in coefMatrix (AMatrix). |
boolean |
isColumnMajor
isColumnMajor holds whether the coefMatrix (AMatrix) holding linear program data is stored by column. |
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). |
double[] |
values
values holds a double array of value elements in coefMatrix (AMatrix), which contains nonzero elements. |
Constructor Summary | |
---|---|
SparseMatrix()
Default constructor. |
|
SparseMatrix(boolean isColumnMajor,
int startSize,
int valueSize)
Constructor. |
Method Summary | |
---|---|
boolean |
display(int secondaryDim)
This method displays data structure in the matrix format. |
static void |
main(java.lang.String[] args)
main for test purposes. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean isColumnMajor
public int[] starts
public int[] indexes
public double[] values
Constructor Detail |
---|
public SparseMatrix()
public SparseMatrix(boolean isColumnMajor, int startSize, int valueSize)
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.Method Detail |
---|
public boolean display(int secondaryDim)
public static void main(java.lang.String[] args)
argv
- command line arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |