mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 08:59:06 +08:00
Help compiler with name resolution to avoid overload mixups
This commit is contained in:
parent
03ffd696a6
commit
15865b741c
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user