mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 04:53:33 +08:00
Fix coverage for inverse.
This commit is contained in:
@@ -232,9 +232,8 @@ bool inv(const SquareMatrix<Type, M> & A, SquareMatrix<Type, M> & inv)
|
||||
// divide by the factor
|
||||
// on current
|
||||
// term to be solved
|
||||
if(fabsf(U(i,i)) < 1e-8f) {
|
||||
return false;
|
||||
}
|
||||
//
|
||||
// we know that U(i, i) != 0 from above
|
||||
P(i, c) /= U(i, i);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user