Ginger 1.1.11
Loading...
Searching...
No Matches
config.hpp File Reference

Algorithm options (max iterations, tolerance). More...

#include <algorithm>
#include <cmath>
#include <cstddef>
#include <vector>
Include dependency graph for config.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ginger::Options

Namespaces

namespace  ginger
 Options for convergence-based algorithms.

Functions

auto ginger::should_parallelize (std::size_t num_roots) -> bool
 Whether num_roots should use the multi-threaded execution policy.
auto ginger::residual_scale (const std::vector< double > &coeffs) -> double
 Normalisation factor making the convergence test scale-invariant.

Variables

constexpr std::size_t ginger::PARALLEL_THRESHOLD = 4
 Number of roots above which the multi-threaded policies are used by default.

Detailed Description

Algorithm options (max iterations, tolerance).