|
EmrysFilter 0.1.0
State estimation utilities in C++23 using Eigen
|
The product of the discrete spaces Axes: a value has one value in each axis. More...
#include <EmrysFilter/Spaces/Discrete.h>
Public Member Functions | |
| constexpr | DiscreteProduct (Axes... axes) |
| The product of axes, with their cardinalities. | |
| template<std::size_t I> | |
| constexpr auto const & | axis () const |
| constexpr Eigen::Index | cardinality () const |
| template<std::size_t I> | |
| constexpr Eigen::Index | stride () const |
| constexpr Eigen::Index | value (std::array< Eigen::Index, AxisCount > const &coordinates) const |
| constexpr std::array< Eigen::Index, AxisCount > | coordinates (Eigen::Index value) const |
Friends | |
| bool | operator== (DiscreteProduct const &, DiscreteProduct const &)=default |
| Equal when every axis is. | |
The product of the discrete spaces Axes: a value has one value in each axis.
Its cardinality is the product of theirs. Values are flattened with the last axis varying fastest: axis I has the stride stride<I>(), the product of the cardinalities after it, and a value's flat index is the sum of each axis's index times its stride.
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |