I am trying to solve a matrix equation such as A.B = C
. The A is the unknown matrix and i must find it.
I have B(n*1)
and C(n*1)
, so A
must be n*n
.
I used the BT* A.T =C.T
method (numpy.linalg.solve(B.T, C.T)
).
But it produces an error:
LinAlgError: Last 2 dimensions of the array must be square.
So the problem is that B isn't square.