Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.LinearAlgebra Namespace > CholeskyDecomposition Class > Methods > CholeskyDecomposition.Solve Method


Extreme Optimization Mathematics Library for .NET

CholeskyDecomposition.Solve Method (GeneralVector, Boolean)

Solves the system of simultaneous linear equations for the specified right-hand side GeneralVector and optionally overwrites the right-hand side with the solution.

[Visual Basic]
Overrides Overloads Public Function Solve( _
   ByVal rightHandSide As GeneralVector, _
   ByVal overwrite As Boolean _
) As GeneralVector
[C#]
public override GeneralVector Solve(
   GeneralVector rightHandSide,
   bool overwrite
);

Parameters

rightHandSide
A Vector.
overwrite
If false, a new Vector instance containing the solution to the system of equations is returned. If false, the vector rightHandSide is overwritten by the solution.

Return Value

A GeneralVector containing the solution of the system of simultaneous linear equations.

Remarks

The number of elements in rightHandSide must equal the number of rows in the GeneralMatrix underlying the system.

If the matrix is singular, a solution may not exist. In this case, a MatrixSingularException is thrown.

This method uses the LAPACK routine DPOTRS.

Exceptions

Exception TypeCondition
ArgumentNullExceptionrightHandSide is a null reference (Nothing in Visual Basic).
DimensionMismatchExceptionThe length of rightHandSide does not equal the number of rows in the matrix underlying this system of equations.
MatrixSingularExceptionThe matrix underlying the system of simultaneous linear equations is singular. A solution could not be found.

See Also

CholeskyDecomposition Class | Extreme.Mathematics.LinearAlgebra Namespace | CholeskyDecomposition.Solve Overload List | LinearTransformation