Default convergence function for IRLS. Can be made into a ToleranceMet delegate.

Namespace:  CenterSpace.NMath.Matrix
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static bool SolutionUnchanged(
	double tol,
	DoubleVector lastSoln,
	DoubleVector currentSoln,
	DoubleVector lastResiduals,
	DoubleVector currentResiduals
)
Visual Basic (Declaration)
Public Shared Function SolutionUnchanged ( _
	tol As Double, _
	lastSoln As DoubleVector, _
	currentSoln As DoubleVector, _
	lastResiduals As DoubleVector, _
	currentResiduals As DoubleVector _
) As Boolean
Visual C++
public:
static bool SolutionUnchanged(
	double tol, 
	DoubleVector^ lastSoln, 
	DoubleVector^ currentSoln, 
	DoubleVector^ lastResiduals, 
	DoubleVector^ currentResiduals
)

Parameters

tol
Type: System..::.Double
The convergence tolerance.
lastSoln
Type: CenterSpace.NMath.Core..::.DoubleVector
The solution from the previous iteration.
currentSoln
Type: CenterSpace.NMath.Core..::.DoubleVector
The current solution.
lastResiduals
Type: CenterSpace.NMath.Core..::.DoubleVector
The residuals from the last iteration.
currentResiduals
Type: CenterSpace.NMath.Core..::.DoubleVector
The current residuals.

Return Value

true if the solution has not changed, within tolerance, from the previous solution; otherwise false.

See Also