Class ShermanMorrisonVectorRootFinder
- java.lang.Object
-
- com.opengamma.strata.math.impl.rootfinding.VectorRootFinder
-
- com.opengamma.strata.math.impl.rootfinding.newton.BaseNewtonVectorRootFinder
-
- com.opengamma.strata.math.impl.rootfinding.newton.ShermanMorrisonVectorRootFinder
-
- All Implemented Interfaces:
SingleRootFinder<DoubleArray,DoubleArray>,NewtonVectorRootFinder
public class ShermanMorrisonVectorRootFinder extends BaseNewtonVectorRootFinder
A root finder that uses the Sherman-Morrison formula to invert Broyden's Jacobian update formula, thus providing a direct update formula for the inverse Jacobian.
-
-
Constructor Summary
Constructors Constructor Description ShermanMorrisonVectorRootFinder()Creates an instance.ShermanMorrisonVectorRootFinder(double absoluteTol, double relativeTol, int maxSteps)Creates an instance.ShermanMorrisonVectorRootFinder(double absoluteTol, double relativeTol, int maxSteps, Decomposition<?> decomp)Creates an instance.ShermanMorrisonVectorRootFinder(double absoluteTol, double relativeTol, int maxSteps, Decomposition<?> decomp, MatrixAlgebra algebra)Creates an instance.
-
Method Summary
-
Methods inherited from class com.opengamma.strata.math.impl.rootfinding.newton.BaseNewtonVectorRootFinder
findRoot, findRoot, getRoot, updatePosition
-
Methods inherited from class com.opengamma.strata.math.impl.rootfinding.VectorRootFinder
checkInputsAndApplyFunction, getRoot
-
-
-
-
Constructor Detail
-
ShermanMorrisonVectorRootFinder
public ShermanMorrisonVectorRootFinder()
Creates an instance.
-
ShermanMorrisonVectorRootFinder
public ShermanMorrisonVectorRootFinder(double absoluteTol, double relativeTol, int maxSteps)Creates an instance.- Parameters:
absoluteTol- the absolute tolerancerelativeTol- the relative tolerancemaxSteps- the maximum steps
-
ShermanMorrisonVectorRootFinder
public ShermanMorrisonVectorRootFinder(double absoluteTol, double relativeTol, int maxSteps, Decomposition<?> decomp)Creates an instance.- Parameters:
absoluteTol- the absolute tolerancerelativeTol- the relative tolerancemaxSteps- the maximum stepsdecomp- the decomposition
-
ShermanMorrisonVectorRootFinder
public ShermanMorrisonVectorRootFinder(double absoluteTol, double relativeTol, int maxSteps, Decomposition<?> decomp, MatrixAlgebra algebra)Creates an instance.- Parameters:
absoluteTol- the absolute tolerancerelativeTol- the relative tolerancemaxSteps- the maximum stepsdecomp- the decompositionalgebra- the instance of matrix algebra
-
-