Linear Operator<T>.Solve(Dense Vector<T>, Boolean) Method
Solves the system of linear equations for the specified
right-hand side dense vector and optionally
overwrites the right-hand side with the solution.
Definition
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A DenseVector<T> containing the solution of the system of simultaneous linear equations.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public Vector<T> Solve(
DenseVector<T> rightHandSide,
bool overwrite
)
Parameters
- rightHandSide DenseVector<T>
- A Vector<T>.
- overwrite Boolean
- If false, a new Vector<T> instance containing the solution to the system of equations is returned. If false, the vector rightHandSide is overwritten by the solution.
Return Value
Vector<T>A DenseVector<T> containing the solution of the system of simultaneous linear equations.
Exceptions
Argument | rightHandSide is null. |
Dimension | The length of rightHandSide does not equal the number of rows of the matrix underlying this system of equations. |
Matrix | The Matrix<T> underlying this system of equations is singular and does not have an inverse. |
Dimension | The Matrix<T> underlying this system of equations is not square. |