IterativeSparseSolver<T>.Solve Method

Definition

Namespace: Extreme.Mathematics.LinearAlgebra.IterativeSolvers
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Solve() Solves the system of equations and returns the solution.
Solve(Vector<T>) Solves the system of equations for the specified right-hand side and returns the result.
Solve(Vector<T>, Vector<T>) Solves the system of equations for the specified right-hand side and returns the result.

IterativeSparseSolver<T>.Solve

Solves the system of equations and returns the solution.
C#
public DenseVector<T> Solve()

Return Value

DenseVector<T>
A dense vector containing the best approximation to the solution of the system of equations.

IterativeSparseSolver<T>.Solve(Vector<T>)

Solves the system of equations for the specified right-hand side and returns the result.
C#
public DenseVector<T> Solve(
	Vector<T> rightHandSide
)

Parameters

rightHandSide  Vector<T>
A vector that specifies the right-hand side of the system of equations.

Return Value

DenseVector<T>
A vector that contains the solution of the system.

Exceptions

ArgumentNullException

rightHandSide is null.

DimensionMismatchException

The length of rightHandSide does not equal the number of rows and columns in the matrix.

IterativeSparseSolver<T>.Solve(Vector<T>, Vector<T>)

Solves the system of equations for the specified right-hand side and returns the result.
C#
public DenseVector<T> Solve(
	Vector<T> rightHandSide,
	Vector<T> initialGuess
)

Parameters

rightHandSide  Vector<T>
A vector that specifies the right-hand side of the system of equations.
initialGuess  Vector<T>
A vector that specifies the initial guess for the solution.

Return Value

DenseVector<T>
A vector that contains the solution of the system.

Exceptions

ArgumentNullException

rightHandSide is null.

DimensionMismatchException

The length of rightHandSide does not equal the number of rows and columns in the matrix.

-or-

The length of initialGuess does not equal the number of rows and columns in the matrix.

See Also