func matrixMultiplyAdd(m, n, k, s int, mk, kn, mn []float32) { for hi := 0; hi < k; { lo := hi if hi += s; hi > k { hi = k } for mm := 0; mm < m; mm++ { for nn := 0; nn < n; nn++ { sum := float32(0) for kk := lo; kk <= hi; kk++ { mk := mk[mm*k+kk] kn := kn[kk*n+nn] sum += mk * kn } mn[mm*n+nn] += sum } } } }
To receive a hint, submit unfixed code.