3 ms·
> No one does matrix multiplication with for loops Because it's slow as dirt right? Isn't the point that they are trying to make is that one could with Mojo?
by fkyoureadthedoc 3y ago
> No one does matrix multiplication with for loops
Because it's slow as dirt right? Isn't the point that they are trying to make is that one could with Mojo?
- janalsncm 3y agoSlower and less convenient. If I have two matrices and want to get a dot product I’d rather just call np.dot than zip and iterate.
- riscy 3y agoIf you take a look at the optimized Mojo code doing the matrix multiply [1], it takes an expert to understand. It’s not just some simple for-loops in Mojo they’re comparing against. [1] https://github.com/modularml/mojo/blob/5ce18c47a27c0c4123de1e5860f79b31d15df116/examples/matmul.mojo https://github.com/modularml/mojo/blob/5ce18c47a27c0c4123de1...