Skip to content
Snippets Groups Projects
Unverified Commit 0fa37b24 authored by Jose Luis Blanco-Claraco's avatar Jose Luis Blanco-Claraco
Browse files

fix diff file

parent b4cd4c7a
No related branches found
Tags debian/1%2.5.1+ds-1
No related merge requests found
Pipeline #413282 failed with stages
in 1 hour, 1 minute, and 58 seconds
......@@ -2,3 +2,15 @@ Fixes FTBFS on i386 due to numerical innacuracies.
Taken from upstream git commit: https://github.com/MRPT/mrpt/commit/68c366d11732f277946369cead13643888e1e4b7
--- a/libs/math/src/MatrixBase_impl.h
+++ b/libs/math/src/MatrixBase_impl.h
@@ -145,6 +145,9 @@
{
detail::sortEigResults(
eigenVal, es.eigenvectors().real(), eVals, eVecs);
+
+ // Avoid numerical issues on some platforms (e.g. i386 arch)
+ if (eVals.at(0) < 0) eVals.at(0) = 0;
}
else
{
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