nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
options.hpp
Go to the documentation of this file.
1
3// toolboxes/ode/include/nk/ode/options.hpp
4//
5// odeset / odeget — assembled options struct passed to the ode* solvers.
6//
7// Reference:
8// • Shampine & Reichelt, "The MATLAB ODE Suite", SIAM J. Sci. Comput.
9// 18(1), 1997.
10
11#pragma once
12
13#include <memory_resource>
14#include <nk/value/value.hpp>
15
16namespace nk::ode {
17
20
21
37Value odeset(const Value *args, std::size_t nargs,
38 std::pmr::memory_resource *mr = nullptr);
39
45Value odeget(const Value &opts, const Value &name,
46 const Value &default_v, std::pmr::memory_resource *mr = nullptr);
47
48
50} // namespace nk::ode
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
Value odeset(const Value *args, std::size_t nargs, std::pmr::memory_resource *mr=nullptr)
Build / extend an ODE options struct (odeset(...)).
Value odeget(const Value &opts, const Value &name, const Value &default_v, std::pmr::memory_resource *mr=nullptr)
Read a single field from an ODE options struct (val = odeget(opts, 'Name'[, default])).