|
ZonoOpt v2.0.1
|
IntervalView class. More...
#include <Intervals.hpp>


Public Member Functions | |
| IntervalView (zono_float *y_min, zono_float *y_max) | |
| constructor for IntervalView | |
| template<typename Derived > | |
| IntervalView & | operator= (const IntervalBase< Derived > &other) |
| Assignment operator. | |
| Interval | to_interval () const |
| convert to Interval class | |
| zono_float & | get_y_min () |
| get reference to lower bound | |
| zono_float & | get_y_max () |
| get reference to upper bound | |
| const zono_float & | get_y_min () const |
| get const reference to lower bound | |
| const zono_float & | get_y_max () const |
| get const reference to upper bound | |
Public Member Functions inherited from ZonoOpt::IntervalBase< IntervalView > | |
| zono_float & | y_min () |
| Returns reference to interval lower bound. | |
| const zono_float & | y_min () const |
| Returns const reference to interval lower bound. | |
| zono_float & | y_max () |
| Returns reference to interval upper bound. | |
| const zono_float & | y_max () const |
| Returns const reference to interval upper bound. | |
| void | set (const zono_float min, const zono_float max) |
| Sets interval bounds. | |
| void | add_assign (const IntervalView &x1, const IntervalView &x2) |
| sets interval to x1 + x2 | |
| void | subtract_assign (const IntervalView &x1, const IntervalView &x2) |
| sets interval to x1 - x2 | |
| void | multiply_assign (const IntervalView &x1, const IntervalView &x2) |
| sets interval to x1 * x2 | |
| void | multiply_assign (const IntervalView &x1, zono_float alpha) |
| sets interval to alpha * x1 | |
| void | inverse () |
| sets interval to its inverse | |
| void | divide_assign (const IntervalView &x1, const IntervalView &x2) |
| sets interval to x1 / x2 | |
| void | intersect_assign (const IntervalView &x1, const IntervalView &x2) |
| sets interval to intersection of x1 and x2 | |
| bool | is_empty () const |
| checks whether interval is empty | |
| bool | contains (zono_float y) const |
| checks whether interval contains a value | |
| bool | is_single_valued () const |
| checks whether interval is single-valued (i.e., width is 0 within numerical tolerance) | |
| zono_float | width () const |
| get width of interval (ub - lb) | |
| void | sin_assign (const IntervalView &x) |
| compute interval containing sin(x) over x | |
| void | cos_assign (const IntervalView &x) |
| compute interval containing cos(x) over x | |
| void | tan_assign (const IntervalView &x) |
| compute interval containing tan(x) over x | |
| void | arcsin_assign (const IntervalView &x) |
| compute interval containing arcsin(x) over x | |
| void | arccos_assign (const IntervalView &x) |
| compute interval containing arccos(x) over x | |
| void | arctan_assign (const IntervalView &x) |
| compute interval containing arctan(x) over x | |
| void | exp_assign (const IntervalView &x) |
| compute interval containing exp(x) over x | |
Public Attributes | |
| zono_float * | lb_ptr = nullptr |
| pointer to lower bound | |
| zono_float * | ub_ptr = nullptr |
| pointer to upper bound | |
IntervalView class.
Implements interface from IntervalBase. This class does not own its lower and upper bounds.
|
inline |
constructor for IntervalView
| y_min | lower bound pointer |
| y_max | upper bound pointer |
|
inline |
get reference to upper bound
|
inline |
get const reference to upper bound
|
inline |
get reference to lower bound
|
inline |
get const reference to lower bound
|
inline |
Assignment operator.
| Derived | either Interval or IntervalView |
| other | other interval |
|
inline |
| zono_float* ZonoOpt::IntervalView::lb_ptr = nullptr |
pointer to lower bound
| zono_float* ZonoOpt::IntervalView::ub_ptr = nullptr |
pointer to upper bound