numerics 0.1.0
Loading...
Searching...
No Matches
algorithms.hpp
Go to the documentation of this file.
1/// @file solve/algorithms.hpp
2/// @brief Algorithm tags: carry the numerics, not the mathematics.
3#pragma once
4
5#include "core/types.hpp"
7
8namespace num {
9
10struct Euler {
11 double h = 1e-3;
12};
13
14struct RK4 {
15 double h = 1e-3;
16};
17
18struct RK45 {
19 double h = 1e-3;
20 double rtol = 1e-6;
21 double atol = 1e-9;
22 idx max_steps = 1000000;
23};
24
30
31struct Metropolis {
32 int equilibration = 1000;
33 int measurements = 500;
34};
35
36} // namespace num
Core type definitions.
Universal linear solver callable type.
std::function< SolverResult(const Vector &rhs, Vector &x)> LinearSolver
Callable that solves .
std::size_t idx
Definition types.hpp:11
constexpr real e
Definition math.hpp:44
LinearSolver solver
double atol
double rtol
double h