Ginger 1.1.9
Loading...
Searching...
No Matches
config.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include <cstddef> // for size_t
9
17namespace ginger {
18
19 class Options {
20 public:
21 unsigned int max_iters = 2000U;
22 double tolerance = 1e-12;
23 double tol_ind = 1e-15;
24 };
25
27 inline constexpr std::size_t PARALLEL_THRESHOLD = 4;
28
30 inline auto should_parallelize(std::size_t num_roots) -> bool {
32 }
33
34} // namespace ginger
constexpr auto make_vdc_table() -> std::array< double, N >
Helper to generate a constexpr table of VdCorput<Base> values.
Definition aberth.hpp:21
Definition config.hpp:19
double tol_ind
Definition config.hpp:23
unsigned int max_iters
Definition config.hpp:21
double tolerance
Definition config.hpp:22
Options for convergence-based algorithms.
Definition aberth.hpp:13
auto should_parallelize(std::size_t num_roots) -> bool
Whether num_roots should use the multi-threaded execution policy.
Definition config.hpp:30
constexpr std::size_t PARALLEL_THRESHOLD
Number of roots above which the multi-threaded policies are used by default.
Definition config.hpp:27