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