detail 12 python_bindings/numpy/dtype.cpp dtype(python::detail::new_reference(reinterpret_cast<PyObject *>(PyArray_DescrFromType(code)))) detail 95 python_bindings/numpy/dtype.cpp python::detail::new_reference dtype::convert(python::object const &arg, bool align) { detail 104 python_bindings/numpy/dtype.cpp return python::detail::new_reference(reinterpret_cast<PyObject *>(obj)); detail 157 python_bindings/numpy/dtype.cpp dtype dt(python::detail::borrowed_reference(obj->ob_type)); detail 29 python_bindings/numpy/dtype.hpp static python::detail::new_reference convert(python::object::object_cref arg, bool align); detail 111 python_bindings/numpy/dtype.hpp inline dtype dtype::get_builtin() { return detail::builtin_dtype<T>::get(); } detail 112 python_bindings/numpy/ndarray.cpp ndarray r(python::detail::new_reference(PyArray_NewFromDescr(&PyArray_Type, detail 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()))); detail 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()))); detail 135 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyObject_CallMethod(this->ptr(), const_cast<char *>("copy"), const_cast<char *>("")))); detail 139 python_bindings/numpy/ndarray.cpp return dtype(python::detail::borrowed_reference(get_struct()->descr)); detail 144 python_bindings/numpy/ndarray.cpp return python::object(python::detail::borrowed_reference(get_struct()->base)); detail 158 python_bindings/numpy/ndarray.cpp return numpy::detail::numpy_to_bitflag(get_struct()->flags); detail 162 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_Transpose(reinterpret_cast<PyArrayObject *>(this->ptr()), NULL))); detail 166 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_Squeeze(reinterpret_cast<PyArrayObject *>(this->ptr())))); detail 170 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_Reshape(reinterpret_cast<PyArrayObject *>(this->ptr()), shape.ptr()))); detail 175 python_bindings/numpy/ndarray.cpp return python::object(python::detail::new_reference(PyArray_Return(reinterpret_cast<PyArrayObject *>(ptr())))); detail 183 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_Zeros(nd, dims.get(), detail::incref_dtype(dt), 0))); detail 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))); detail 195 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_Empty(nd, dims.get(), detail::incref_dtype(dt), 0))); detail 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))); detail 203 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_FromAny(obj.ptr(), NULL, 0, 0, NPY_ENSUREARRAY, NULL))); detail 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))); detail 211 python_bindings/numpy/ndarray.cpp int requirements = detail::bitflag_to_numpy(flags); detail 212 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_FromAny(obj.ptr(), detail 213 python_bindings/numpy/ndarray.cpp detail::incref_dtype(dt), detail 220 python_bindings/numpy/ndarray.cpp int requirements = detail::bitflag_to_numpy(flags); detail 221 python_bindings/numpy/ndarray.cpp return ndarray(python::detail::new_reference(PyArray_FromAny(obj.ptr(), detail 216 python_bindings/numpy/ndarray.hpp return numpy::detail::from_data_impl(data, dt, shape, strides, owner, true); detail 240 python_bindings/numpy/ndarray.hpp return numpy::detail::from_data_impl(const_cast<void *>(data), dt, shape, strides, owner, false); detail 18 python_bindings/numpy/numpy_object_mgr_traits.hpp static inline python::detail::new_reference adopt(PyObject *x) { \ detail 19 python_bindings/numpy/numpy_object_mgr_traits.hpp return python::detail::new_reference(python::pytype_check((PyTypeObject *)get_pytype(), x)); \