Added more warnings, and fixed issues.

This commit is contained in:
jgoppert
2015-11-05 11:17:54 -05:00
parent 6ba15eeaa0
commit 0062cbcbe2
10 changed files with 84 additions and 85 deletions
+1 -15
View File
@@ -58,7 +58,7 @@ public:
Type norm() const {
const Vector &a(*this);
return sqrt(a.dot(a));
return Type(sqrt(a.dot(a)));
}
inline void normalize() {
@@ -81,20 +81,6 @@ public:
return res;
}
bool operator==(const Vector<Type, M> &other) const
{
Vector<Type, M> res;
const Vector<Type, M> &self = *this;
for (size_t i = 0; i < M; i++) {
if (self(i) != other(i)) {
return false;
}
}
return true;
}
Vector<Type, M> operator-(const Vector<Type, M> &other) const
{
Vector<Type, M> res;