Commit 8f71e396 authored by Sarah Parker's avatar Sarah Parker Committed by Gerrit Code Review

Merge "Fix naming mistake in multiply_mat" into nextgenv2

parents 3e457ba1 8f90d8b5
...@@ -56,7 +56,7 @@ static void multiply_mat(const double *m1, const double *m2, double *res, ...@@ -56,7 +56,7 @@ static void multiply_mat(const double *m1, const double *m2, double *res,
for (col = 0; col < m2_cols; ++col) { for (col = 0; col < m2_cols; ++col) {
sum = 0; sum = 0;
for (inner = 0; inner < inner_dim; ++inner) for (inner = 0; inner < inner_dim; ++inner)
sum += m1[row * m1_rows + inner] * m2[inner * m2_cols + col]; sum += m1[row * inner_dim + inner] * m2[inner * m2_cols + col];
*(res++) = sum; *(res++) = sum;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment