Commit 38fe2cc9 authored by Jason Rhinelander's avatar Jason Rhinelander

Remove nextafter; it's already available via numpy

Since we require numpy anyway (for learning support), there's little
point in exposing this here.
parent f44c8c6a
......@@ -10,8 +10,6 @@ namespace pyeris {
PYBIND11_PLUGIN(algorithms) {
py::module m("eris.algorithms", "eris interface for Python -- various algorithms and utilities");
m.def("nextafter", (double (*)(double,double)) &std::nextafter, "from"_a, "to"_a, "Returns the next representable value of `from` in the direction of `to`");
m.def("single_peak_search", &eris::single_peak_search,
"f"_a, "left"_a, "right"_a, "tol_rel"_a = 1e-10, "tol_abs"_a = 1e-20,
"Performs a \"golden section search\" to find the maximum of a single-peaked function, "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment