Click or drag to resize
DigitalRuneSorMethodFSolve Method (MatrixF, VectorF, VectorF)
Solves the specified linear system of equations Ax=b.

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public override VectorF Solve(
	MatrixF matrixA,
	VectorF initialX,
	VectorF vectorB
)

Parameters

matrixA
Type: DigitalRune.Mathematics.AlgebraMatrixF
The matrix A.
initialX
Type: DigitalRune.Mathematics.AlgebraVectorF
The initial guess for x. If this value is , a zero vector will be used as initial guess.
vectorB
Type: DigitalRune.Mathematics.AlgebraVectorF
The vector b.

Return Value

Type: VectorF
The solution vector x.
Exceptions
ExceptionCondition
ArgumentNullExceptionmatrixA is .
ArgumentNullExceptionvectorB is .
ArgumentExceptionmatrixA is not a square matrix.
ArgumentException The number of elements of initialX does not match.
See Also