Return the solution x of the linear system ax = b using the LU
factorization of a.
Namespace:
Imsl.Math
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public static Complex[] Solve( Complex[,] a, Complex[] b ) |
Visual Basic (Declaration) |
---|
Public Shared Function Solve ( _ a As Complex(,), _ b As Complex() _ ) As Complex() |
Visual C++ |
---|
public: static array<Complex>^ Solve( array<Complex,2>^ a, array<Complex>^ b ) |
Parameters
- a
- Type: array<
Imsl.Math..::.Complex
,2>[,](,)[,]
A Complex square matrix.
- b
- Type: array<
Imsl.Math..::.Complex
>[]()[]
A Complex column vector.
Return Value
A Complex column vector containing the solution to the linear system of equations.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentException | is thrown when the number of rows in a is not equal to the length of b |
Imsl.Math..::.SingularMatrixException | is thrown when the matrix is singular |