I have the equation A * x = b
sizes of A is matrix sized n x m, x is m x 1 and b is n x 1. A has more rows than columns (n < m).
My unknown is A and since n != m, A does not have an inverse. My knowns are the two vectors x and b. Basically, I want to find the A that makes (A * x - b) close to zero.
Least squares seems appropriate, but I am not sure on how to proceed since it doesn't seem to follow my text book nor the wikipedia entry; usually the matrix A is known. If OLS isn't appropriate, what would be? Singluar Value Decomposition? Again, pointers please, my linear-algebra is rusty.
Would like to be able to implement this (python/C). Pointers to good readable code?