SparseSquareMatrixSolve Method

Solves Ax = b using iterative methods.

Definition

Namespace: Meta.Numerics.Matrices
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public ColumnVector Solve(
	ColumnVector rhs
)

Parameters

rhs  ColumnVector
The right-hand side vector b.

Return Value

ColumnVector
The solution vector x.

Remarks

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.

Exceptions

ArgumentNullExceptionrhs is null.
DimensionMismatchExceptionrhs's dimension does not equal the matrix's dimension.
NonconvergenceExceptionThe method did not converge to a solution.

See Also