IMSL C# Numerical Library

LU.Solve Method (Double[,], Double[])

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

public static double[] Solve(
   double[,] a,
   double[] b
);

Parameters

a
A double square matrix.
b
A double column vector.

Return Value

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

Exceptions

Exception Type Condition
ArgumentException is thrown when the number of rows in the input matrix is not equal to the number of elements in x
SingularMatrixException is thrown when the matrix is singular

See Also

LU Class | Imsl.Math Namespace | LU.Solve Overload List