Uses the LU factorization of self to solve the linear system Ax = b.

Namespace: CenterSpace.NMath.Matrix
Assembly: NMathPremium (in NMathPremium.dll) Version: 5.3.0.0

Syntax

C#
public FloatVector Solve(
	FloatVector b
)
Visual Basic
Public Function Solve ( _
	b As FloatVector _
) As FloatVector
Visual C++
public:
FloatVector^ Solve(
	FloatVector^ b
)

Parameters

b
Type: CenterSpace.NMath.Core..::..FloatVector
Vector to solve for. Must have a length equal to the number of rows in the factored matrix.

Return Value

A vector x that is the solution to Ax = b.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::..SingularMatrixExceptionThrown if the factored matrix is singular.
CenterSpace.NMath.Core..::..MismatchedSizeExceptionThrown if the length of b is different than the number of rows in the factored matrix.

See Also