numerics 0.1.0
Loading...
Searching...
No Matches
problems.hpp
Go to the documentation of this file.
1/// @file solve/problems.hpp
2/// @brief Problem types: carry the mathematics, not the numerics.
3#pragma once
4
5#include "core/vector.hpp"
6#include "ode/ode.hpp"
7#include <functional>
8#include <random>
9
10namespace num {
11
12struct ODEProblem {
15 double t0 = 0.0;
16 double tf = 1.0;
17};
18
20 std::function<double(int)> accept_prob;
21 std::function<void(int)> propose;
23};
24
25} // namespace num
std::function< void(real t, const Vector &y, Vector &dydt)> ODERhsFn
Definition ode.hpp:12
ODE and symplectic integrators.
std::function< double(int)> accept_prob
Definition problems.hpp:20
std::function< void(int)> propose
Definition problems.hpp:21
Dense vector storage and operations.