26#ifndef PDI_PYTHON_TOOLS_H_
27#define PDI_PYTHON_TOOLS_H_
29#include <pybind11/numpy.h>
30#include <pybind11/pybind11.h>
32#include <pdi/pdi_fwd.h>
33#include <pdi/ref_any.h>
43pybind11::object PDI_EXPORT
to_python(
Ref r,
bool force_const =
false);
57pybind11::dtype PDI_EXPORT
to_python(
const std::shared_ptr<const Scalar_datatype>& scalar_type);
Definition array_datatype.h:38
pybind11::object to_python(Ref r, bool force_const=false)
Wraps a PDI reference in a python object.
Datatype_sptr python_type(const pybind11::array &a)
Function takes python numpy array and converts it into PDI datatype.
std::shared_ptr< const Datatype > Datatype_sptr
Definition pdi_fwd.h:80
Ref_any< false, false > Ref
Definition pdi_fwd.h:94