func matrixMultiply(m, n, k int, mk, kn, mn []float32) { for i1 := 0; i1 < m; i1++ { for i2 := 0; i2 < n; i2++ { sum := float32(0) for i3 := 0; i3 < k; i3++ { var ( mk = mk[i1*k+i3] kn = kn[i3*n+i2] ) sum += mk * kn } mn[i2*m+i1] = sum } } }
To receive a hint, submit unfixed code.