Permalink
Browse files

fixed matrix multiplication for NxM matrices #30

  • Loading branch information...
1 parent 718f264 commit d9d66ba9d31bf715dbfd419841cb392159c4467a @Dav1dde committed Mar 20, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 gl3n/linalg.d
View
@@ -1753,7 +1753,7 @@ struct Matrix(type, int rows_, int cols_) if((rows_ > 0) && (cols_ > 0)) {
Matrix!(mt, rows, T.cols) ret;
foreach(r; TupleRange!(0, rows)) {
- foreach(c; TupleRange!(0, cols)) {
+ foreach(c; TupleRange!(0, T.cols)) {
ret.matrix[r][c] = 0;
foreach(c2; TupleRange!(0, cols)) {

0 comments on commit d9d66ba

Please sign in to comment.