Click or drag to resize
SparseSquareMatrixSolve Method
Solves Ax = b using iterative methods.

Namespace:  Meta.Numerics.Matrices
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: (
public ColumnVector Solve(
	ColumnVector rhs


Type: Meta.Numerics.MatricesColumnVector
The right-hand side vector b.

Return Value

Type: ColumnVector
The solution vector x.
ArgumentNullExceptionrhs is null.
DimensionMismatchExceptionrhs's dimension does not equal the matrix's dimension.
NonconvergenceExceptionThe 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.

See Also