EmrysFilter 0.1.0
State estimation utilities in C++23 using Eigen
Loading...
Searching...
No Matches
NumericError.h
Go to the documentation of this file.
1#pragma once
2
11
12#include <expected>
13
14namespace Emrys
15{
16
37
46
54
55namespace internal
56{
57
59template <typename T>
60inline constexpr bool isExpected = false;
61
63template <typename T, typename E>
64inline constexpr bool isExpected<std::expected<T, E>>{true};
66
67} // namespace internal
68
69} // namespace Emrys
NumericError WeightError
Reasons a collection of log-weights cannot be normalized: Empty, ZeroSum, or NonFinite of NumericErro...
Definition NumericError.h:53
NumericError
Reasons a computation from parameters the caller gave can fail: a matrix that does not factorize or a...
Definition NumericError.h:30
@ NotPositiveDefinite
the covariance is not positive definite, so it has no Cholesky factor or inverse
Definition NumericError.h:31
@ NonFinite
a matrix, a factor, or a log-weight holds NaN or infinity (+inf, for a log-weight)
Definition NumericError.h:33
@ ZeroSum
every weight is zero (every log-weight is -inf)
Definition NumericError.h:35
@ Empty
there are no weights
Definition NumericError.h:34
@ Singular
the precision is not positive definite, so the mean and covariance are undefined
Definition NumericError.h:32
NumericError GaussianError
Reasons a Gaussian, in any of its forms (decisions.md [gaussian-forms]), can fail to give a density,...
Definition NumericError.h:45