]> git.tdb.fi Git - libs/math.git/blobdiff - source/linal/matrix.h
Minor fixes
[libs/math.git] / source / linal / matrix.h
index 00e960d9ce8111de4d88bd0bf664d470183f442c..4fc2bc620136a37200629f9d72a3764cbaec2118 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef MSP_LIEAL_MATMIX_H_
-#define MSP_LIEAL_MATMIX_H_
+#ifndef MSP_LINAL_MATRIX_H_
+#define MSP_LINAL_MATRIX_H_
 
 #include "vector.h"
 
@@ -139,7 +139,7 @@ Vector<T, N> operator*(const Vector<T, M> &v, const Matrix<T, M, N> &m)
        Vector<T, N> r;
        for(unsigned j=0; j<N; ++j)
                for(unsigned i=0; i<M; ++i)
-                       r[j] += v[i]*m.at(i, j);
+                       r[j] += v[i]*m(i, j);
        return r;
 }