A linear expression.
More...
A linear expression.
An object of the class Linear_Expression represents a linear expression that can be built from a Linear_Expression_Variable, Linear_Expression_Coefficient, Linear_Expression_Sum, Linear_Expression_Difference, Linear_Expression_Times and Linear_Expression_Unary_Minus. Built-in operators copy their operands and visit built-in subtrees without recursive calls.
◆ sum()
Returns the sum of this and y.
- Parameters
-
| y | The linear expression operand. |
- Returns
- The sum of
this and y.
◆ subtract()
Returns the difference of this and y.
- Parameters
-
| y | The linear expression operand. |
- Returns
- The difference of
this and y.
◆ times()
Returns the product of this times c.
- Parameters
-
| c | The coefficient operand. |
- Returns
- The product of
this times c.
◆ unary_minus()
Returns the negation of this.
- Returns
- The negation of
this.
◆ clone()
◆ ascii_dump()
| native String parma_polyhedra_library.Linear_Expression.ascii_dump |
( |
| ) |
|
Returns an ascii formatted internal representation of this.
- Returns
- An ascii formatted internal representation of
this.
◆ toString()
| native String parma_polyhedra_library.Linear_Expression.toString |
( |
| ) |
|
Returns a string representation of this.
- Returns
- A string representation of
this.
◆ is_zero()
| native boolean parma_polyhedra_library.Linear_Expression.is_zero |
( |
| ) |
|
Returns true if and only if this is
.
- Returns
true if and only if this is
.
◆ all_homogeneous_terms_are_zero()
| native boolean parma_polyhedra_library.Linear_Expression.all_homogeneous_terms_are_zero |
( |
| ) |
|
Returns true if and only if all the homogeneous terms of this are
.
- Returns
true if and only if all the homogeneous terms of this are
.
The documentation for this class was generated from the following file: