Skip to content
Snippets Groups Projects
Commit a9fe9ce5 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Macro WOLF_ASSERT_COVARIANCE_MATRIX does not check determinant any more.

parent eae0e0e1
No related branches found
No related tags found
1 merge request!207FeatureBase: covariance, information, square root information upper matrices
Pipeline #1768 failed
...@@ -323,12 +323,10 @@ bool isCovariance(const Eigen::Matrix<T, N, N, RC>& M, const T& eps = Constants: ...@@ -323,12 +323,10 @@ bool isCovariance(const Eigen::Matrix<T, N, N, RC>& M, const T& eps = Constants:
} }
#define WOLF_ASSERT_COVARIANCE_MATRIX(x) \ #define WOLF_ASSERT_COVARIANCE_MATRIX(x) \
assert(x.determinant() > 0 && "Not positive definite measurement covariance"); \
assert(isCovariance(x, Constants::EPS_SMALL) && "Not a covariance"); assert(isCovariance(x, Constants::EPS_SMALL) && "Not a covariance");
#define WOLF_ASSERT_INFORMATION_MATRIX(x) \ #define WOLF_ASSERT_INFORMATION_MATRIX(x) \
assert(x.determinant() > 0 && "Not positive definite measurement covariance"); \ assert(isCovariance(x, 0.0) && "Not an information matrix");
assert(isCovariance(x, 0.) && "Not an information matrix");
//=================================================== //===================================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment