In the Lecture 8 slides, the final line in MatMul is C[ i * N + j ] += A[ i * N +k ] * B[ k * N + j ]. That first and last N should be K, correct? In the demo, that line is changed to C[ K * i + j ] += A[ N * i +k ] * B[ K * k + j ]. When I was working it out by hand so it would make sense in my head, the demo code made sense, but the lecture slides didn't. Is that a mistake in the slides, or is there something I'm missing that would explain whey the two are different?
In the Lecture 8 slides, the final line in MatMul is C[ i * N + j ] += A[ i * N +k ] * B[ k * N + j ]. That first and last N should be K, correct? In the demo, that line is changed to C[ K * i + j ] += A[ N * i +k ] * B[ K * k + j ]. When I was working it out by hand so it would make sense in my head, the demo code made sense, but the lecture slides didn't. Is that a mistake in the slides, or is there something I'm missing that would explain whey the two are different?