xo-pyexpression: + make_pow_pm()
This commit is contained in:
parent
a4396576c8
commit
8c44daf87d
1 changed files with 6 additions and 0 deletions
|
|
@ -110,11 +110,17 @@ namespace xo {
|
|||
py::doc("create primitive representing the ::sin() function"));
|
||||
m.def("make_cos_pm", []() { return make_primitive<Fn_dbl_dbl_type>("cos", ::cos); },
|
||||
py::doc("create primitive representing the ::cos() function"));
|
||||
m.def("make_pow_pm", []() { return make_primitive<double (*)(double, double)>("pow", ::pow); },
|
||||
py::doc("create primitive representing the ::pow() function"));
|
||||
|
||||
py::class_<Primitive<double (*)(double)>,
|
||||
PrimitiveInterface,
|
||||
rp<Primitive<double (*)(double)>>>(m, "Primitive_double_double")
|
||||
;
|
||||
py::class_<Primitive<double (*)(double, double)>,
|
||||
PrimitiveInterface,
|
||||
rp<Primitive<double (*)(double, double)>>>(m, "Primitive_double_double_double")
|
||||
;
|
||||
|
||||
// ----- Apply -----
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue