Uses this factorization to solve the linear system AX = B.

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

Syntax

C#
public FloatComplexMatrix Solve(
	FloatComplexMatrix B
)
Visual Basic (Declaration)
Public Function Solve ( _
	B As FloatComplexMatrix _
) As FloatComplexMatrix
Visual C++
public:
FloatComplexMatrix^ Solve(
	FloatComplexMatrix^ B
)

Parameters

B
Type: CenterSpace.NMath.Core..::.FloatComplexMatrix
The matrix of right hand sides. B must have the same number of rows as the factored matrix.

Return Value

A matrix with the same number of columns as B containing the solutions.

Remarks

The ith column of X, X(i), is the solution to the equation AX(i) = B(i), where B(i) is the ith column of B.

Exceptions

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

See Also