Help compiler with name resolution to avoid overload mixups

This commit is contained in:
Julian Kent 2019-09-09 19:53:50 +02:00 committed by Lorenz Meier
parent 03ffd696a6
commit 15865b741c

View File

@ -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;
}