mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-07 02:40:35 +08:00
Help compiler with name resolution to avoid overload mixups
This commit is contained in:
committed by
Lorenz Meier
parent
03ffd696a6
commit
15865b741c
+2
-2
@@ -66,7 +66,7 @@ public:
|
||||
|
||||
Type norm() const {
|
||||
const Vector &a(*this);
|
||||
return Type(::sqrt(a.dot(a)));
|
||||
return Type(matrix::sqrt(a.dot(a)));
|
||||
}
|
||||
|
||||
Type norm_squared() const {
|
||||
@@ -102,7 +102,7 @@ public:
|
||||
const Vector &a(*this);
|
||||
Vector r;
|
||||
for (size_t i = 0; i<M; i++) {
|
||||
r(i) = Type(::sqrt(a(i)));
|
||||
r(i) = Type(matrix::sqrt(a(i)));
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user