Search code examples
pythonmultiplication

multiplication matrices python


I have the following variables:

A of dimensions [126 X 3] B of dimensions [3 x 2]

what is the python equivalent of the matlab multipication C = A*B'

C is a matrix of dimension [126 x 2]


Solution

  • import numpy as np
    
    c = np.dot(a, b)