#include <expressions.hpp>
Public Member Functions | |
linear_expression () | |
Constructor. | |
linear_expression (col_id col, double coef=1.) | |
Constructor. | |
linear_expression & | operator+= (const linear_expression &expr) |
Addition operator. | |
linear_expression & | operator-= (const linear_expression &expr) |
Subtraction operator. | |
linear_expression & | operator*= (double val) |
Multiplication by a constant operator. | |
linear_expression & | operator/= (double val) |
Division by a constant operator. | |
double | get_coefficient (col_id col) const |
Returns the coefficient for a given column. | |
const Elements & | get_elements () const |
Returns the iterator range of the elements in the expression. | |
int | non_zeros () const |
Returns the size (number of nonzero coefficients) of the expression. | |
Expression class.
Definition at line 45 of file expressions.hpp.