15 fmt::format(
" v0 {} v1 {} f0 {} f1 {} fT {}", v0, v1, f0, f1, fTarget));
16 for (
int iter = 1; iter <= maxIter; iter++)
20 real vm = 0.5 * (v0 + v1);
21 v0 = std::min(v0, vm);
22 v1 = std::max(v1, vm);
Core type aliases, constants, and metaprogramming utilities for the DNDS framework.
#define DNDS_assert_info(expr, info)
Debug-only assertion with an extra std::string info message.
Robust linear-algebra primitives for small / moderately-sized Eigen matrices that are more numericall...
real BisectSolveLower(TF &&F, real v0, real v1, real fTarget, int maxIter)
DNDS_CONSTANT const real verySmallReal
Catch-all lower bound ("effectively zero").
double real
Canonical floating-point scalar used throughout DNDSR (double precision).