python 12 python_bindings/numpy/dtype.cpp dtype(python::detail::new_reference(reinterpret_cast<PyObject *>(PyArray_DescrFromType(code)))) python 95 python_bindings/numpy/dtype.cpp python::detail::new_reference dtype::convert(python::object const &arg, bool align) { python 99 python_bindings/numpy/dtype.cpp python::throw_error_already_set(); python 102 python_bindings/numpy/dtype.cpp python::throw_error_already_set(); python 104 python_bindings/numpy/dtype.cpp return python::detail::new_reference(reinterpret_cast<PyObject *>(obj)); python 138 python_bindings/numpy/dtype.cpp namespace pyconv = boost::python::converter; python 157 python_bindings/numpy/dtype.cpp dtype dt(python::detail::borrowed_reference(obj->ob_type)); python 175 python_bindings/numpy/dtype.cpp &convertible, &convert, python::type_id<T>() python 28 python_bindings/numpy/dtype.hpp class dtype : public python::object { python 29 python_bindings/numpy/dtype.hpp static python::detail::new_reference convert(python::object::object_cref arg, bool align); python 34 python_bindings/numpy/dtype.hpp explicit dtype(T arg, bool align = false) : python::object(convert(arg, align)) {} python 69 python_bindings/numpy/dtype.hpp BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS(dtype, python::object); python 79 python_bindings/numpy/ndarray.cpp python::object const &shape, python 80 python_bindings/numpy/ndarray.cpp python::object const &strides, python 81 python_bindings/numpy/ndarray.cpp python::object const &owner, python 87 python_bindings/numpy/ndarray.cpp python::throw_error_already_set(); python 90 python_bindings/numpy/ndarray.cpp shape_[i] = python::extract<Py_intptr_t>(shape[i]); python 91 python_bindings/numpy/ndarray.cpp strides_[i] = python::extract<Py_intptr_t>(strides[i]); python 100 python_bindings/numpy/ndarray.cpp python::object const &owner, python 104 python_bindings/numpy/ndarray.cpp python::throw_error_already_set(); python 112 python_bindings/numpy/ndarray.cpp ndarray r(python::detail::new_reference(PyArray_NewFromDescr(&PyArray_Type, python 127 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyObject_CallMethod(this->ptr(), const_cast<char *>("view"), const_cast<char *>("O"), dt.ptr()))); python 131 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyObject_CallMethod(this->ptr(), const_cast<char *>("astype"), const_cast<char *>("O"), dt.ptr()))); python 135 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyObject_CallMethod(this->ptr(), const_cast<char *>("copy"), const_cast<char *>("")))); python 139 python_bindings/numpy/ndarray.cpp return dtype(python::detail::borrowed_reference(get_struct()->descr)); python 142 python_bindings/numpy/ndarray.cpp python::object ndarray::get_base() const { python 144 python_bindings/numpy/ndarray.cpp return python::object(python::detail::borrowed_reference(get_struct()->base)); python 162 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_Transpose(reinterpret_cast<PyArrayObject *>(this->ptr()), NULL))); python 166 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_Squeeze(reinterpret_cast<PyArrayObject *>(this->ptr())))); python 169 python_bindings/numpy/ndarray.cpp ndarray ndarray::reshape(python::tuple const &shape) const { python 170 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_Reshape(reinterpret_cast<PyArrayObject *>(this->ptr()), shape.ptr()))); python 173 python_bindings/numpy/ndarray.cpp python::object ndarray::scalarize() const { python 175 python_bindings/numpy/ndarray.cpp return python::object(python::detail::new_reference(PyArray_Return(reinterpret_cast<PyArrayObject *>(ptr())))); python 178 python_bindings/numpy/ndarray.cpp ndarray zeros(python::tuple const &shape, dtype const &dt) { python 182 python_bindings/numpy/ndarray.cpp dims[n] = python::extract<Py_intptr_t>(shape[n]); python 183 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_Zeros(nd, dims.get(), detail::incref_dtype(dt), 0))); python 187 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_Zeros(nd, const_cast<Py_intptr_t *>(shape), detail::incref_dtype(dt), 0))); python 190 python_bindings/numpy/ndarray.cpp ndarray empty(python::tuple const &shape, dtype const &dt) { python 194 python_bindings/numpy/ndarray.cpp dims[n] = python::extract<Py_intptr_t>(shape[n]); python 195 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_Empty(nd, dims.get(), detail::incref_dtype(dt), 0))); python 199 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_Empty(nd, const_cast<Py_intptr_t *>(shape), detail::incref_dtype(dt), 0))); python 202 python_bindings/numpy/ndarray.cpp ndarray array(python::object const &obj) { python 203 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_FromAny(obj.ptr(), NULL, 0, 0, NPY_ENSUREARRAY, NULL))); python 206 python_bindings/numpy/ndarray.cpp ndarray array(python::object const &obj, dtype const &dt) { python 207 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_FromAny(obj.ptr(), detail::incref_dtype(dt), 0, 0, NPY_ENSUREARRAY, NULL))); python 210 python_bindings/numpy/ndarray.cpp ndarray from_object(python::object const &obj, dtype const &dt, int nd_min, int nd_max, ndarray::bitflag flags) { python 212 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_FromAny(obj.ptr(), python 219 python_bindings/numpy/ndarray.cpp ndarray from_object(python::object const &obj, int nd_min, int nd_max, ndarray::bitflag flags) { python 221 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_FromAny(obj.ptr(), python 30 python_bindings/numpy/ndarray.hpp class ndarray : public python::object { python 111 python_bindings/numpy/ndarray.hpp python::object get_base() const; python 135 python_bindings/numpy/ndarray.hpp ndarray reshape(python::tuple const &shape) const; python 143 python_bindings/numpy/ndarray.hpp python::object scalarize() const; python 149 python_bindings/numpy/ndarray.hpp ndarray zeros(python::tuple const &shape, dtype const &dt); python 155 python_bindings/numpy/ndarray.hpp ndarray empty(python::tuple const &shape, dtype const &dt); python 163 python_bindings/numpy/ndarray.hpp ndarray array(python::object const &obj); python 164 python_bindings/numpy/ndarray.hpp ndarray array(python::object const &obj, dtype const &dt); python 172 python_bindings/numpy/ndarray.hpp python::object const &owner, python 180 python_bindings/numpy/ndarray.hpp python::object const &owner, python 190 python_bindings/numpy/ndarray.hpp python::object const &shape, python 191 python_bindings/numpy/ndarray.hpp python::object const &strides, python 192 python_bindings/numpy/ndarray.hpp python::object const &owner, python 215 python_bindings/numpy/ndarray.hpp python::object const &owner) { python 239 python_bindings/numpy/ndarray.hpp python::object const &owner) { python 253 python_bindings/numpy/ndarray.hpp ndarray from_object(python::object const &obj, dtype const &dt, python 256 python_bindings/numpy/ndarray.hpp inline ndarray from_object(python::object const &obj, dtype const &dt, python 261 python_bindings/numpy/ndarray.hpp inline ndarray from_object(python::object const &obj, dtype const &dt, ndarray::bitflag flags = ndarray::NONE) { python 265 python_bindings/numpy/ndarray.hpp ndarray from_object(python::object const &obj, int nd_min, int nd_max, python 268 python_bindings/numpy/ndarray.hpp inline ndarray from_object(python::object const &obj, int nd, ndarray::bitflag flags = ndarray::NONE) { python 272 python_bindings/numpy/ndarray.hpp inline ndarray from_object(python::object const &obj, ndarray::bitflag flags = ndarray::NONE) { python 18 python_bindings/numpy/numpy_object_mgr_traits.hpp static inline python::detail::new_reference adopt(PyObject *x) { \ python 19 python_bindings/numpy/numpy_object_mgr_traits.hpp return python::detail::new_reference(python::pytype_check((PyTypeObject *)get_pytype(), x)); \ python 25 python_bindings/numpy/numpy_object_mgr_traits.hpp return python::downcast<manager>((checked_downcast_impl)(x, (PyTypeObject *)get_pytype())); \ python 14 python_bindings/python/Argument.cpp namespace p = boost::python; python 15 python_bindings/python/BoundaryConditions.cpp namespace p = boost::python; python 11 python_bindings/python/Error.cpp namespace p = boost::python; python 16 python_bindings/python/Expr.cpp namespace p = boost::python; python 10 python_bindings/python/Expr.h boost::python::object expr_vector_to_python_tuple(const std::vector<Halide::Expr> &t); python 11 python_bindings/python/Expr.h std::vector<Halide::Expr> python_tuple_to_expr_vector(const boost::python::object &obj); python 14 python_bindings/python/Expr.h std::vector<T> python_collection_to_vector(const boost::python::object &obj) { python 16 python_bindings/python/Expr.h for (ssize_t i = 0; i < boost::python::len(obj); i++) { python 17 python_bindings/python/Expr.h result.push_back(boost::python::extract<T>(obj[i])); python 22 python_bindings/python/Func.cpp namespace p = boost::python; python 20 python_bindings/python/Func.h namespace bp = boost::python; python 13 python_bindings/python/Func_Ref.cpp namespace p = boost::python; python 15 python_bindings/python/Func_Stage.cpp namespace p = boost::python; python 15 python_bindings/python/Func_VarOrRVar.cpp namespace p = boost::python; python 9 python_bindings/python/Func_gpu.cpp namespace p = boost::python; python 10 python_bindings/python/Func_gpu.h void defineFuncGpuMethods(boost::python::class_<Halide::Func> &func_class); python 17 python_bindings/python/Func_gpu.h namespace bp = boost::python; python 13 python_bindings/python/Function.cpp namespace p = boost::python; python 42 python_bindings/python/Halide.cpp using namespace boost::python; python 11 python_bindings/python/IROperator.cpp namespace p = boost::python; python 31 python_bindings/python/Image.cpp namespace p = boost::python; python 167 python_bindings/python/Image.cpp boost::python::object get_type_function_wrapper() { python 8 python_bindings/python/Image.h boost::python::object buffer_to_python_object(const Halide::Buffer<> &); python 9 python_bindings/python/Image.h Halide::Buffer<> python_object_to_buffer(boost::python::object); python 13 python_bindings/python/InlineReductions.cpp namespace p = boost::python; python 38 python_bindings/python/Lambda.cpp namespace p = boost::python; python 17 python_bindings/python/Param.cpp namespace p = boost::python; python 12 python_bindings/python/RDom.cpp namespace p = boost::python; python 14 python_bindings/python/Target.cpp namespace p = boost::python; python 53 python_bindings/python/Type.cpp namespace p = boost::python; python 52 python_bindings/python/Var.cpp namespace p = boost::python; python 21 python_bindings/python/add_operators.h using namespace boost::python; python 85 python_bindings/python/add_operators.h using namespace boost::python;