help to multiply two matrices?

0

I'm doing a program where I need to multiply the following matrices:

  

[[- 13. 6. -4.] [12. -5. 3.] [-5. 2. -1.]]

This matrix that is the inverse of another one that you take out in this way:

matriz_lista = np.array(lista_tempL).reshape(3,-1)  
b = np.linalg.inv(matriz_lista)

and this matrix:

  

[[25 19 15 15 18 15] [6 0 28 0 21 0] [27 3 6 8 2 8]]

I'm trying to multiply them like this:

matrizf = b*matriz_mensaje  

and it shows me the following message:

  

ValueError: operands could not be broadcast together with shapes (3,3)   (3,6)

I have multiplied both matrices in online calculators and can multiply I do not know what happens

    
asked by AXL 30.10.2018 в 23:09
source

0 answers