Question

I have an underdetermined equation set (m equations of n variables, m smaller than n). As such, if it is solvable then the set of solutions are a linear space (if it is a homogenic set) or affine space (non-homogenic).

Is there an easy way in Python (possibly with other libraries) to obtain this space - for example, a basis of which?

Thanks.

Was it helpful?

Solution

Like the previous poster said, you'll want linalg from SciPy, but focus on the Singular Value Decomposition solution. The matrix U is the basis for the output vectors.

OTHER TIPS

Use linalg package from SciPy

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top