We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba85dcd commit c1bfa26Copy full SHA for c1bfa26
1 file changed
content/data-structures/Matrix.h
@@ -18,7 +18,7 @@ template<class T, int N> struct Matrix {
18
M operator*(const M& m) const {
19
M a;
20
rep(i,0,N) rep(j,0,N)
21
- rep(k,0,N) a.d[i][j] += d[i][k]*m.d[k][j];
+ rep(k,0,N) a.d[i][k] += d[i][j] * m.d[j][k];
22
return a;
23
}
24
array<T, N> operator*(const array<T, N>& vec) const {
0 commit comments