|
codac 2.0.0
|
Class representing a zonotope \(\mathbf{c} + \mathbf{A}\cdot[-1,1]^m\). More...
#include <codac2_Zonotope.h>
Public Member Functions | |
| Zonotope () | |
| Constructs an invalid zonotope, for future assignment. | |
| Zonotope (const IntervalVector &box) | |
| Constructs a zonotope from a box. | |
| Zonotope (const Vector &c, const Matrix &A) | |
| Constructs a n-zonotope object with a given center and shape matrix. | |
| bool | is_empty () const |
| Checks if the zonotope is empty. | |
| void | set_empty () |
| Sets the zonotope to be empty. | |
| Index | size () const |
| Outputs the size of the zonotope. | |
| IntervalVector | box () const |
| Computes the axis-aligned bounding box of the zonotope. | |
| Zonotope | proj (const std::vector< Index > &indices) const |
| Projects the Zonotope onto the subspace defined by the given indices. | |
| Zonotope | operator+ (const Zonotope &zonotope) const |
| Computes the Minkowski sum of this Zonotope with another Zonotope. | |
| Zonotope & | operator+= (const IntervalVector &box) |
| Add an IntervalVector to the current zonotope. Create a new generator only if needed. | |
| Zonotope | transform (const IntervalMatrix &mat) const |
| apply a transformation on A (keeping c) with an IntervalMatrix i.e. enclose { c, MA }. | |
| Zonotope | reduction (double o, bool invert=false) const |
| Create a new zonotope englobing (*this) with at most \(n\times o\) columns (with \(n\) the dimension of the zonotope. Return a copy if the number of columns is already less than or equal to \(n\times o\). Note that \(o\) must be at least 1 (returns a parallelotope if \(o=1\)). The method is rather coarse and use a full pivot LU decomposition to determine the columns which are kept rather than more complex computations). | |
| Zonotope & | operator&= (const IntervalVector &box) |
| In-place intersection of a zonotope and a box. Not very precise but may be useful in some case. | |
| Zonotope | operator& (const IntervalVector &box) const |
| Intersection of a zonotope and a box. Not very precise but may be useful in some case. | |
Static Public Member Functions | |
| static Zonotope | empty (Index n) |
| Constructs an empty n-zonotope. | |
Public Attributes | |
| Vector | c |
| Center of the zonotope. | |
| Matrix | A |
| Shape matrix of the zonotope. | |
| bool | empty_flag = false |
| Flag indicating whether the zonotope is empty. | |
Class representing a zonotope \(\mathbf{c} + \mathbf{A}\cdot[-1,1]^m\).
This class represents a zonotope in n-dimensional space, defined by a center point \(\mathbf{c}\) and a shape matrix \(\mathbf{A}\).
The vector \(\mathbf{c}\) and each column of the matrix \(\mathbf{A}\) must have the same dimension \(n\), but the matrix \(\mathbf{A}\) can have any number of columns \(m\).
| codac2::Zonotope::Zonotope | ( | const IntervalVector & | box | ) |
Constructs a zonotope from a box.
| box | The box |
|
static |
Constructs an empty n-zonotope.
| n | Dimension of the zonotope |
| bool codac2::Zonotope::is_empty | ( | ) | const |
Checks if the zonotope is empty.
|
inline |
Outputs the size of the zonotope.
| IntervalVector codac2::Zonotope::box | ( | ) | const |
Computes the axis-aligned bounding box of the zonotope.
| Zonotope codac2::Zonotope::proj | ( | const std::vector< Index > & | indices | ) | const |
| Zonotope & codac2::Zonotope::operator+= | ( | const IntervalVector & | box | ) |
Add an IntervalVector to the current zonotope. Create a new generator only if needed.
| Zonotope codac2::Zonotope::transform | ( | const IntervalMatrix & | mat | ) | const |
apply a transformation on A (keeping c) with an IntervalMatrix i.e. enclose { c, MA }.
| mat | The matrix of interval vectors |
| Zonotope codac2::Zonotope::reduction | ( | double | o, |
| bool | invert = false ) const |
Create a new zonotope englobing (*this) with at most \(n\times o\) columns (with \(n\) the dimension of the zonotope. Return a copy if the number of columns is already less than or equal to \(n\times o\). Note that \(o\) must be at least 1 (returns a parallelotope if \(o=1\)). The method is rather coarse and use a full pivot LU decomposition to determine the columns which are kept rather than more complex computations).
| o | the new maximum order (i.e. \(m/n\)) of the zonotope. |
| invert | if true, the zonotope created is at least a parallelotope (i.e. the matrix is full rank). |
| Zonotope & codac2::Zonotope::operator&= | ( | const IntervalVector & | box | ) |
In-place intersection of a zonotope and a box. Not very precise but may be useful in some case.
| box | the box to be intersected |
| Zonotope codac2::Zonotope::operator& | ( | const IntervalVector & | box | ) | const |
Intersection of a zonotope and a box. Not very precise but may be useful in some case.
| box | the box to be intersected |