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
10
namespace
num
{
11
12
struct
ODEProblem
{
13
ODERhsFn
f
;
14
Vector
u0
;
15
double
t0
= 0.0;
16
double
tf
= 1.0;
17
};
18
19
struct
MCMCProblem
{
20
std::function<double(
int
)>
accept_prob
;
21
std::function<void(
int
)>
propose
;
22
int
n_sites
;
23
};
24
25
}
// namespace num
num::BasicVector< real >
num
Definition
quadrature.hpp:8
num::ODERhsFn
std::function< void(real t, const Vector &y, Vector &dydt)> ODERhsFn
Definition
ode.hpp:12
ode.hpp
ODE and symplectic integrators.
num::MCMCProblem
Definition
problems.hpp:19
num::MCMCProblem::n_sites
int n_sites
Definition
problems.hpp:22
num::MCMCProblem::accept_prob
std::function< double(int)> accept_prob
Definition
problems.hpp:20
num::MCMCProblem::propose
std::function< void(int)> propose
Definition
problems.hpp:21
num::ODEProblem
Definition
problems.hpp:12
num::ODEProblem::tf
double tf
Definition
problems.hpp:16
num::ODEProblem::t0
double t0
Definition
problems.hpp:15
num::ODEProblem::f
ODERhsFn f
Definition
problems.hpp:13
num::ODEProblem::u0
Vector u0
Definition
problems.hpp:14
vector.hpp
Dense vector storage and operations.
include
solve
problems.hpp
Generated by
1.9.8