|
codac 2.1.2
|
Class representing a zonotope \(\mathbf{c} + \mathbf{A}\cdot[-1,1]^m\). More...
#include <codac2_Zonotope.h>
Public Member Functions | |
| 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 | 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). | |
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\).
|
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::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). |