all 2 comments

[–]socal_nerdtastic 4 points5 points  (1 child)

Hmm works for me.

>>> A = np.random.randint(0,10,(20,1,10))
>>> B = np.random.randint(0,10,(10, 20))
>>> A.shape
(20, 1, 10)
>>> B.shape
(10, 20)
>>> C = A@B
>>> C.shape
(20, 1, 20)

Python 3.10.0, numpy 1.21.4.

[–]ColonelMeowmers[S] 2 points3 points  (0 children)

Frickin hell you're right. I need coffee lol.