Why are rows and column references transposed in mojo matrix implementations? #858
Replies: 1 comment
-
That's a typical case of bad naming: it's not transposed.
there are 2 rows and 3 columns. Getitem is defined with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Source: https://docs.modular.com/mojo/notebooks/Matmul.html#adding-types-to-the-python-implementation
A[m, k]
in the above code appears to reference indexm
forrow
andk
forcolumn
, whereas in the__getitem__
method, it is transposed. There are other examples in documentation where this is happening too, but is there any specific reason the implementation is transposing row and column references?Beta Was this translation helpful? Give feedback.
All reactions