22 #include "pybind11/pybind11.h"
26 namespace py = pybind11;
27 using namespace pybind11::literals;
33 py::module mod(
"constants");
35 py::enum_<BasisTypeEnum>(mod,
"BasisTypeEnum")
Constants, typedefs, and general-purpose functions for shapelets library.
int computeSize(int order)
Return the size of the coefficient vector for the given order.
Polar shapelets or Gauss-Laguerre functions, as defined in Bernstein and Jarvis, 2002.
int computeOrder(int size)
Infer the order of a shapelet expansion from the number of coefficients.
PYBIND11_PLUGIN(basisEvaluator)
Cartesian shapelets or Gauss-Hermite functions, as defined in Refregier, 2003.
double intSqrt(int n)
Compute the square root of an integer number.
int computeOffset(int order)
Return the offset of the given order in a coefficient vector.
double rationalSqrt(int n, int d)
Compute the square root of a rational number i.e. sqrt(n/d)