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

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public MustOverride Function Solve ( _
	rightHandSide As GeneralVector, _
	overwrite As Boolean _
) As GeneralVector
C#
public abstract GeneralVector Solve (
	GeneralVector rightHandSide,
	bool overwrite
)
C++
public:
virtual GeneralVector^ Solve (
	GeneralVector^ rightHandSide, 
	bool overwrite
) abstract

Parameters

rightHandSide (Extreme.Mathematics.LinearAlgebra.GeneralVector)
A Vector.
overwrite (System.Boolean)
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.

Exceptions

ExceptionCondition
ArgumentNullExceptionrightHandSide is nullNothingnullptr.
DimensionMismatchExceptionThe length of rightHandSide does not equal the number of rows of the matrix underlying this system of equations.
MatrixSingularExceptionThe Matrix underlying this system of equations is singular and does not have an inverse.
DimensionMismatchExceptionThe Matrix underlying this system of equations is not square.