Solves a system of equations using Gaussian Elimination. In order to avoid overhead the algorithm runs in-place on A - if A should not be modified the client must supply a copy.
-
Parameters:
-
a - a an nxn matrix in row/column order )modified by this method)
-
b - b a vector of length n
-
Returns:
-
a vector containing the solution (if any) or null if the system has no or no unique solution
-
Throws:
-
IllegalArgumentException - IllegalArgumentException if the matrix is the wrong size