gemseo.utils.derivatives.approximation_modes module#
The approximation modes.
- class ApproximationMode(*values)[source]#
Bases:
StrEnumThe approximation derivation modes.
- CENTERED_DIFFERENCES = 'centered_differences'#
The centered differences method used to approximate the Jacobians by perturbing each variable with a small real number.
- COMPLEX_STEP = 'complex_step'#
The complex step method used to approximate the Jacobians by perturbing each variable with a small complex number.
- FINITE_DIFFERENCES = 'finite_differences'#
The finite differences method used to approximate the Jacobians by perturbing each variable with a small real number.
- class HybridApproximationMode(*values)[source]#
Bases:
StrEnumThe approximation derivation modes for semi-analytical computations.
- HYBRID_CENTERED_DIFFERENCES = 'hybrid_centered_differences'#
The centered differences method used to approxiamate the Jacobian not available analytically by perturbing those variables with a small real number.
- HYBRID_COMPLEX_STEP = 'hybrid_complex_step'#
"The complex step method used to approximiate the Jacobian not available analytically by perturbing those variables with a small complex number.
- HYBRID_FINITE_DIFFERENCES = 'hybrid_finite_differences'#
"The finite differences method used to approxiamate the Jacobian not available analytically by perturbing those variables with a small real number.