codac 2.0.0
Loading...
Searching...
No Matches
codac2::Parallelepiped Class Reference

Class representing a parallelepiped \(\mathbf{z} + \mathbf{A}\cdot[-1,1]^m\). More...

#include <codac2_Parallelepiped.h>

Inheritance diagram for codac2::Parallelepiped:
Collaboration diagram for codac2::Parallelepiped:

Public Member Functions

 Parallelepiped (const Vector &z, const Matrix &A)
 Constructs a n-parallelepiped object with a given center and shape matrix.
 
Zonotope proj (const std::vector< Index > &indices) const
 Projects the parallelepiped onto the subspace defined by the given indices.
 
std::vector< Vectorvertices () const
 Computes the vertices of the parallelepiped.
 
IntervalVector box () const
 Computes the axis-aligned bounding box of the parallelepiped.
 
- Public Member Functions inherited from codac2::Zonotope
 Zonotope (const Vector &z, const Matrix &A)
 Constructs a n-zonotope object with a given center and shape matrix.
 

Additional Inherited Members

- Public Attributes inherited from codac2::Zonotope
Vector z
 Center of the zonotope.
 
Matrix A
 Shape matrix of the zonotope.
 

Detailed Description

Class representing a parallelepiped \(\mathbf{z} + \mathbf{A}\cdot[-1,1]^m\).

This class represents a parallelepiped in n-dimensional space, defined by a center point \(\mathbf{z}\) and a shape matrix \(\mathbf{A}\).

A parallelepiped is a special case of a zonotope where the shape matrix \(\mathbf{A}\) has \(m\) columns with \(m \leqslant n\).

Constructor & Destructor Documentation

◆ Parallelepiped()

codac2::Parallelepiped::Parallelepiped ( const Vector & z,
const Matrix & A )

Constructs a n-parallelepiped object with a given center and shape matrix.

Parameters
zCenter of the parallelepiped (n-dimensional vector)
AShape matrix of the parallelepiped ( \(n\times m\) matrix with \(m \leqslant n\))

Member Function Documentation

◆ proj()

Zonotope codac2::Parallelepiped::proj ( const std::vector< Index > & indices) const

Projects the parallelepiped onto the subspace defined by the given indices.

Parameters
indicesVector of indices of the dimensions to project onto
Returns
A new Zonotope object representing the projection of the parallelepiped onto the specified subspace

◆ vertices()

std::vector< Vector > codac2::Parallelepiped::vertices ( ) const

Computes the vertices of the parallelepiped.

Returns
A vector containing the unsorted vertices of the parallelepiped

◆ box()

IntervalVector codac2::Parallelepiped::box ( ) const

Computes the axis-aligned bounding box of the parallelepiped.

Returns
An IntervalVector representing the axis-aligned bounding box of the parallelepiped

The documentation for this class was generated from the following file: