]> git.tdb.fi Git - libs/math.git/blobdiff - source/linal/squarematrix.h
Use the correct multiplication operator
[libs/math.git] / source / linal / squarematrix.h
index 94157b0f3b92f2e2de9ebbf49e927d17bf8a9ae8..ee86e13921219702fa58a682c4b5ab2bb5cfb290 100644 (file)
@@ -42,8 +42,7 @@ inline SquareMatrix<T, S> SquareMatrix<T, S>::identity()
 template<typename T, unsigned S>
 SquareMatrix<T, S> &SquareMatrix<T, S>::operator*=(const SquareMatrix<T, S> &m)
 {
-       Matrix<T, S, S>::operator*=(m);
-       return *this;
+       return *this = *this*m;
 }
 
 template<typename T, unsigned S>