numpy-100 icon indicating copy to clipboard operation
numpy-100 copied to clipboard

I have a better way to solve exercise 24

Open anthonyduong9 opened this issue 1 year ago • 0 comments

I think

Z = np.matmul(np.ones((5, 3)), np.ones((3, 2)))

would be better than

https://github.com/rougier/numpy-100/blob/916e1ecf9544719b49ece6fc135b089988b33058/100_Numpy_exercises_with_hints_with_solutions.md?plain=1#L205

because the docs say

"If both a and b are 2-D arrays, it is matrix multiplication, but using matmul or a @ b is preferred.".

anthonyduong9 avatar Sep 29 '24 00:09 anthonyduong9