OS
2.9.3
|
a data structure to represent the nonzero values in a linearMatrix element More...
#include <OSMatrix.h>
Public Member Functions | |
LinearMatrixElements () | |
~LinearMatrixElements () | |
bool | IsEqual (LinearMatrixElements *that) |
A function to check for the equality of two objects. More... | |
bool | setRandom (double density, bool conformant, int iMin, int iMax) |
A function to make a random instance of this class. More... | |
bool | deepCopyFrom (LinearMatrixElements *that) |
A function to make a deep copy of an instance of this class. More... | |
Public Attributes | |
int | numberOfValues |
numberOfValues records the number of entries in the arrays that make up the instance of nonzeros More... | |
bool | rowMajor |
To indicate whether the linear matrix elements are stored in row major form or column major form. More... | |
IntVector * | start |
A vector listing the row or column starts. More... | |
IntVector * | indexes |
The indexes of the (nonzero) linear matrix elements row or column indexes, depending on rowMajor. More... | |
LinearMatrixValues * | values |
The values are expressions of the form a_0 + a_1 x_{i_1} * a_2 x_{i_2} + ... More... | |
a data structure to represent the nonzero values in a linearMatrix element
Definition at line 501 of file OSMatrix.h.
LinearMatrixElements::LinearMatrixElements | ( | ) |
LinearMatrixElements::~LinearMatrixElements | ( | ) |
bool LinearMatrixElements::IsEqual | ( | LinearMatrixElements * | that | ) |
A function to check for the equality of two objects.
bool LinearMatrixElements::setRandom | ( | double | density, |
bool | conformant, | ||
int | iMin, | ||
int | iMax | ||
) |
A function to make a random instance of this class.
density | corresponds to the probability that a particular child element is created |
conformant | if true enforces side constraints not enforceable in the schema (e.g., agreement of "numberOfXXX" attributes and <XXX> children) |
iMin | lowest index value (inclusive) that a variable reference in this matrix can take |
iMax | greatest index value (inclusive) that a variable reference in this matrix can take |
bool LinearMatrixElements::deepCopyFrom | ( | LinearMatrixElements * | that | ) |
A function to make a deep copy of an instance of this class.
that | the instance from which information is to be copied |
int LinearMatrixElements::numberOfValues |
numberOfValues records the number of entries in the arrays that make up the instance of nonzeros
Definition at line 508 of file OSMatrix.h.
bool LinearMatrixElements::rowMajor |
To indicate whether the linear matrix elements are stored in row major form or column major form.
Definition at line 514 of file OSMatrix.h.
IntVector* LinearMatrixElements::start |
A vector listing the row or column starts.
Definition at line 519 of file OSMatrix.h.
IntVector* LinearMatrixElements::indexes |
The indexes of the (nonzero) linear matrix elements row or column indexes, depending on rowMajor.
Definition at line 524 of file OSMatrix.h.
LinearMatrixValues* LinearMatrixElements::values |
The values are expressions of the form a_0 + a_1 x_{i_1} * a_2 x_{i_2} + ...
Each term in this sum is stored as a separate LinearMatrixValues object
Definition at line 531 of file OSMatrix.h.