Solving matrix equation A B = C. with B(n* 1) and C(n *1)
If you're solving for the matrix, there is an infinite number of solutions (assuming that B is nonzero). Here's one of the possible solutions: 
Choose an nonzero element of B, Bi. Now construct a matrix A such that the ith column is C / Bi, and the other columns are zero.
It should be easy to verify that multiplying this matrix by B gives C.
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.