3RNN/Lib/site-packages/scipy/optimize/cython_optimize/c_zeros.pxd

27 lines
1.1 KiB
Cython
Raw Permalink Normal View History

2024-05-26 19:49:15 +02:00
cdef extern from "../Zeros/zeros.h":
ctypedef double (*callback_type)(double, void*) noexcept
ctypedef struct scipy_zeros_info:
int funcalls
int iterations
int error_num
cdef extern from "../Zeros/bisect.c" nogil:
double bisect(callback_type f, double xa, double xb, double xtol,
double rtol, int iter, void *func_data_param,
scipy_zeros_info *solver_stats)
cdef extern from "../Zeros/ridder.c" nogil:
double ridder(callback_type f, double xa, double xb, double xtol,
double rtol, int iter, void *func_data_param,
scipy_zeros_info *solver_stats)
cdef extern from "../Zeros/brenth.c" nogil:
double brenth(callback_type f, double xa, double xb, double xtol,
double rtol, int iter, void *func_data_param,
scipy_zeros_info *solver_stats)
cdef extern from "../Zeros/brentq.c" nogil:
double brentq(callback_type f, double xa, double xb, double xtol,
double rtol, int iter, void *func_data_param,
scipy_zeros_info *solver_stats)