3 ms·
How often do you actually write out matrix multiplication in the main code flow? Generally you extract that into a function and just call it like `matrix_multi
by krferriter 7y ago
How often do you actually write out matrix multiplication in the main code flow? Generally you extract that into a function and just call it like `matrix_multiply(A, B)`, which in language which supports operator overloading could be attached behind the expression `A * B`. It's not that loops aren't happening, but the loops are just wrapped up in another expression that is more semantically meaningful, which is a good practice in general.