a data structure to represent a term in a linearMatrix element A term has the form c*x_{k}, where c defaults to 1 and k is a valid index for a variable This is essentially an index-value pair, but with the presence of a default value More...
#include <OSMatrix.h>
Public Member Functions | |
| LinearMatrixElementTerm () | |
| -------— Methods for class LinearMatrixElementTerm -------— More... | |
| ~LinearMatrixElementTerm () | |
| bool | IsEqual (LinearMatrixElementTerm *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 (LinearMatrixElementTerm *that) |
| A function to make a deep copy of an instance of this class. More... | |
Public Attributes | |
| int | idx |
| double | coef |
a data structure to represent a term in a linearMatrix element A term has the form c*x_{k}, where c defaults to 1 and k is a valid index for a variable This is essentially an index-value pair, but with the presence of a default value
Definition at line 373 of file OSMatrix.h.
| LinearMatrixElementTerm::LinearMatrixElementTerm | ( | ) |
-------— Methods for class LinearMatrixElementTerm -------—
Definition at line 4978 of file OSMatrix.cpp.
| LinearMatrixElementTerm::~LinearMatrixElementTerm | ( | ) |
Definition at line 4987 of file OSMatrix.cpp.
| bool LinearMatrixElementTerm::IsEqual | ( | LinearMatrixElementTerm * | that | ) |
A function to check for the equality of two objects.
Definition at line 4994 of file OSMatrix.cpp.
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 |
Definition at line 5032 of file OSMatrix.cpp.
| bool LinearMatrixElementTerm::deepCopyFrom | ( | LinearMatrixElementTerm * | that | ) |
A function to make a deep copy of an instance of this class.
| that,: | the instance from which information is to be copied |
Definition at line 5037 of file OSMatrix.cpp.
| int LinearMatrixElementTerm::idx |
Definition at line 376 of file OSMatrix.h.
| double LinearMatrixElementTerm::coef |
Definition at line 377 of file OSMatrix.h.
1.8.5