mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 13:53:34 +08:00
Coerce default epsilon values to Type
This commit is contained in:
+1
-1
@@ -605,7 +605,7 @@ Matrix<Type, M, N> operator*(Type scalar, const Matrix<Type, M, N> &other)
|
||||
|
||||
template<typename Type, size_t M, size_t N>
|
||||
bool isEqual(const Matrix<Type, M, N> &x,
|
||||
const Matrix<Type, M, N> &y, const Type eps=1e-4f) {
|
||||
const Matrix<Type, M, N> &y, const Type eps=Type(1e-4f)) {
|
||||
for (size_t i = 0; i < M; i++) {
|
||||
for (size_t j = 0; j < N; j++) {
|
||||
if (!isEqualF(x(i,j), y(i,j), eps)) {
|
||||
|
||||
Reference in New Issue
Block a user