SparseSquareMatrixSolve Method |
Namespace: Meta.Numerics.Matrices
Exception | Condition |
---|---|
ArgumentNullException | rhs is null. |
DimensionMismatchException | rhs's dimension does not equal the matrix's dimension. |
NonconvergenceException | The method did not converge to a solution. |
In general, neither the inverse nor any decomposition of a sparse matrix is itself sparse. Therefore, to solve large, sparse linear systems, iterative methods are employed. An iterative method begins with an approximate or guessed solution vector and progresses toward an improved solution. Iterative methods are often successful at converging to a sufficiently accurate solution vector, but this is not guaranteed. If this method fails to converge, it throws a NonconvergenceException.