Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Namespaces | Functions
MathUtils_Convergence.hxx File Reference
#include <MathUtils_Config.hxx>
#include <MathUtils_Core.hxx>
#include <math_Vector.hxx>
#include <cmath>

Namespaces

namespace  MathUtils
 Modern math solver types and result structures.
 

Functions

bool MathUtils::IsXConverged (double theXOld, double theXNew, double theTolerance)
 Check convergence based on relative change in X. Uses relative tolerance scaled by current value magnitude.
 
bool MathUtils::IsFConverged (double theFValue, double theTolerance)
 Check convergence based on absolute function value.
 
bool MathUtils::IsConverged (double theXOld, double theXNew, double theFValue, const Config &theConfig)
 Combined convergence test for scalar root finders. Checks both X convergence and function value convergence.
 
bool MathUtils::IsMinConverged (double theXOld, double theXNew, double theFOld, double theFNew, const Config &theConfig)
 Convergence test for minimization (checks both X and F change).
 
bool MathUtils::IsVectorConverged (const math_Vector &theOld, const math_Vector &theNew, double theTolerance)
 Convergence test for vector solvers using infinity norm.
 
bool MathUtils::IsGradientConverged (const math_Vector &theGradient, double theTolerance)
 Convergence test using gradient norm for minimization.
 
double MathUtils::InfinityNorm (const math_Vector &theVector)
 Compute infinity norm of a vector.
 
double MathUtils::EuclideanNorm (const math_Vector &theVector)
 Compute Euclidean (L2) norm of a vector.