Solve ax=b for x using the LU factorization of a.

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public static double[] Solve(
	double[,] a,
	double[] b
)
Visual Basic (Declaration)
Public Shared Function Solve ( _
	a As Double(,), _
	b As Double() _
) As Double()
Visual C++
public:
static array<double>^ Solve(
	array<double,2>^ a, 
	array<double>^ b
)

Parameters

a
Type: array< System..::.Double ,2>[,](,)[,]
A double square matrix.
b
Type: array< System..::.Double >[]()[]
A double column vector.

Return Value

A double column vector containing the solution to the linear system of equations.

Exceptions

ExceptionCondition
System..::.ArgumentException is thrown when the number of rows in the input matrix is not equal to the number of elements in x
Imsl.Math..::.SingularMatrixException is thrown when the matrix is singular

See Also