EmrysFilter 0.1.0
State estimation utilities in C++23 using Eigen
Loading...
Searching...
No Matches
Emrys::RealScalar Concept Reference

A type usable as the scalar of a distribution: a real number type such as float, double, or an automatic-differentiation scalar. More...

#include <EmrysFilter/Core/Math.h>

Concept definition

template<typename T>
concept RealScalar =
!Eigen::NumTraits<T>::IsInteger && !Eigen::NumTraits<T>::IsComplex && requires(T const & a, T const & b) {
a + b;
a - b;
a * b;
a / b;
a < b;
}
A type usable as the scalar of a distribution: a real number type such as float, double,...
Definition Math.h:80

Detailed Description

A type usable as the scalar of a distribution: a real number type such as float, double, or an automatic-differentiation scalar.

Means, covariances, factorizations, and log-weights need real arithmetic, so integer and complex types are excluded. Integer-valued quantities are values in a discrete space, not scalars.