Template Function sequant::eval::detail::dump_norm2_of

Function Documentation

template<typename F>
double sequant::eval::detail::dump_norm2_of(F &&fetch) noexcept

dump_norm2 of whatever fetch returns, with the fetch itself inside the guard: a registry lookup (CellRegistry::peek) can throw on a bad cell id, and computing the argument at the call site would put that throw outside dump_norm2's own try &#8212; i.e. a diagnostic that aborts the run it is diagnosing.