Name

matrixmultiply

Synopsis

matrixmultiply(a,b)

Returns an array m with a times b in the matrix-multiplication sense, rather than element-wise multiplication. a .shape[-1] must equal b .shape[0], and m .shape is the tuple a .shape[:-1]+ b .shape[1:].

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.