Solves the linear system Ax = b.

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

Syntax

C#
public static FloatComplexVector Solve(
	FloatComplexUpperTriMatrix A,
	FloatComplexVector b
)
Visual Basic (Declaration)
Public Shared Function Solve ( _
	A As FloatComplexUpperTriMatrix, _
	b As FloatComplexVector _
) As FloatComplexVector
Visual C++
public:
static FloatComplexVector^ Solve(
	FloatComplexUpperTriMatrix^ A, 
	FloatComplexVector^ b
)

Parameters

A
Type: CenterSpace.NMath.Matrix..::.FloatComplexUpperTriMatrix
A upper triangular matrix
b
Type: CenterSpace.NMath.Core..::.FloatComplexVector
Vector to solve for. Must have a length equal to the number of rows in A.

Return Value

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

Exceptions

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

See Also