Question could be DUPLICATE.
I'am trying to solve systems of linear equations using NumPy, and i face situations, when system is non-square. It can have infinite solutions, or no solutions. What is the way to handle these kind of situations to show no solution or infinite solutions outcome?
I've seen here the way, by using
np.linalg.lstsq(a, b, rcond=None)[0]
This method uses Least Square method, that is not helpful in my condition.