22 #include "pybind11/pybind11.h"
24 #include "ndarray/pybind11.h"
29 using namespace pybind11::literals;
35 py::class_<RadialProfile, std::shared_ptr<RadialProfile>> clsRadialProfile(mod,
"RadialProfile");
37 clsRadialProfile.def_static(
"get", &RadialProfile::get, py::return_value_policy::reference);
38 clsRadialProfile.def(
"getName", &RadialProfile::getName);
39 clsRadialProfile.def(
"_evaluate", (
double (
RadialProfile::*)(
double)
const) & RadialProfile::evaluate);
40 clsRadialProfile.def(
"_evaluate", (ndarray::Array<double, 1, 1> (
RadialProfile::*)(
41 ndarray::Array<double const, 1, 1>
const &)
const) &
42 RadialProfile::evaluate);
43 clsRadialProfile.def(
"getMomentsRadiusFactor", &RadialProfile::getMomentsRadiusFactor);
44 clsRadialProfile.def(
"getBasis", &RadialProfile::getBasis,
"nComponents"_a,
"maxRadius"_a = 0);
45 clsRadialProfile.def(
"registerBasis", &RadialProfile::registerBasis);