dtype 12 python_bindings/numpy/dtype.cpp dtype(python::detail::new_reference(reinterpret_cast<PyObject *>(PyArray_DescrFromType(code)))) dtype 17 python_bindings/numpy/dtype.cpp static dtype get() { return DTYPE_FROM_CODE(NPY_INT##bits); } \ dtype 21 python_bindings/numpy/dtype.cpp static dtype get() { return DTYPE_FROM_CODE(NPY_UINT##bits); } \ dtype 23 python_bindings/numpy/dtype.cpp template dtype get_int_dtype<bits, false>(); \ dtype 24 python_bindings/numpy/dtype.cpp template dtype get_int_dtype<bits, true>() dtype 29 python_bindings/numpy/dtype.cpp static dtype get() { return DTYPE_FROM_CODE(NPY_FLOAT##bits); } \ dtype 31 python_bindings/numpy/dtype.cpp template dtype get_float_dtype<bits>() dtype 36 python_bindings/numpy/dtype.cpp static dtype get() { return DTYPE_FROM_CODE(NPY_COMPLEX##bits); } \ dtype 38 python_bindings/numpy/dtype.cpp template dtype get_complex_dtype<bits>() dtype 43 python_bindings/numpy/dtype.cpp NUMPY_OBJECT_MANAGER_TRAITS_IMPL(PyArrayDescr_Type, Halide::numpy::dtype) dtype 53 python_bindings/numpy/dtype.cpp dtype builtin_dtype<bool, true>::get() { return DTYPE_FROM_CODE(NPY_BOOL); } dtype 63 python_bindings/numpy/dtype.cpp dtype get_int_dtype() { dtype 67 python_bindings/numpy/dtype.cpp dtype get_float_dtype() { return builtin_float_dtype<bits>::get(); } dtype 69 python_bindings/numpy/dtype.cpp dtype get_complex_dtype() { return builtin_complex_dtype<bits>::get(); } dtype 83 python_bindings/numpy/dtype.cpp static dtype get() { return DTYPE_FROM_CODE(NPY_LONGDOUBLE); } dtype 85 python_bindings/numpy/dtype.cpp template dtype get_float_dtype<NPY_BITSOF_LONGDOUBLE>(); dtype 88 python_bindings/numpy/dtype.cpp static dtype get() { return DTYPE_FROM_CODE(NPY_CLONGDOUBLE); } dtype 90 python_bindings/numpy/dtype.cpp template dtype get_complex_dtype<2 * NPY_BITSOF_LONGDOUBLE>(); dtype 95 python_bindings/numpy/dtype.cpp python::detail::new_reference dtype::convert(python::object const &arg, bool align) { dtype 107 python_bindings/numpy/dtype.cpp int dtype::get_itemsize() const { return reinterpret_cast<PyArray_Descr *>(ptr())->elsize; } dtype 109 python_bindings/numpy/dtype.cpp bool equivalent(dtype const &a, dtype const &b) { dtype 119 python_bindings/numpy/dtype.cpp ((a == dtype::get_builtin<long>() || a == dtype::get_builtin<int>()) && dtype 120 python_bindings/numpy/dtype.cpp (b == dtype::get_builtin<long>() || b == dtype::get_builtin<int>()) || dtype 121 python_bindings/numpy/dtype.cpp (a == dtype::get_builtin<unsigned int>() || a == dtype::get_builtin<unsigned long>()) && dtype 122 python_bindings/numpy/dtype.cpp (b == dtype::get_builtin<unsigned int>() || b == dtype::get_builtin<unsigned long>()))) { dtype 150 python_bindings/numpy/dtype.cpp return reinterpret_cast<PyArray_Descr *>(dtype::get_builtin<T>().ptr())->typeobj; dtype 157 python_bindings/numpy/dtype.cpp dtype dt(python::detail::borrowed_reference(obj->ob_type)); dtype 158 python_bindings/numpy/dtype.cpp if (equivalent(dt, dtype::get_builtin<T>())) { dtype 186 python_bindings/numpy/dtype.cpp void dtype::register_scalar_converters() { dtype 48 python_bindings/numpy/dtype.hpp static dtype get_builtin(); dtype 59 python_bindings/numpy/dtype.hpp friend bool equivalent(dtype const &a, dtype const &b); dtype 69 python_bindings/numpy/dtype.hpp BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS(dtype, python::object); dtype 72 python_bindings/numpy/dtype.hpp bool equivalent(dtype const &a, dtype const &b); dtype 77 python_bindings/numpy/dtype.hpp dtype get_int_dtype(); dtype 80 python_bindings/numpy/dtype.hpp dtype get_float_dtype(); dtype 83 python_bindings/numpy/dtype.hpp dtype get_complex_dtype(); dtype 90 python_bindings/numpy/dtype.hpp static dtype get() { return get_int_dtype<8 * sizeof(T), boost::is_unsigned<T>::value>(); } dtype 95 python_bindings/numpy/dtype.hpp static dtype get(); dtype 100 python_bindings/numpy/dtype.hpp static dtype get() { return get_float_dtype<8 * sizeof(T)>(); } dtype 105 python_bindings/numpy/dtype.hpp static dtype get() { return get_complex_dtype<16 * sizeof(T)>(); } dtype 111 python_bindings/numpy/dtype.hpp inline dtype dtype::get_builtin() { return detail::builtin_dtype<T>::get(); } dtype 118 python_bindings/numpy/dtype.hpp NUMPY_OBJECT_MANAGER_TRAITS(Halide::numpy::dtype); dtype 72 python_bindings/numpy/ndarray.cpp inline PyArray_Descr *incref_dtype(dtype const &dt) { dtype 78 python_bindings/numpy/ndarray.cpp dtype const &dt, dtype 97 python_bindings/numpy/ndarray.cpp dtype const &dt, dtype 126 python_bindings/numpy/ndarray.cpp ndarray ndarray::view(dtype const &dt) const { dtype 130 python_bindings/numpy/ndarray.cpp ndarray ndarray::astype(dtype const &dt) const { dtype 138 python_bindings/numpy/ndarray.cpp dtype ndarray::get_dtype() const { dtype 139 python_bindings/numpy/ndarray.cpp return dtype(python::detail::borrowed_reference(get_struct()->descr)); dtype 178 python_bindings/numpy/ndarray.cpp ndarray zeros(python::tuple const &shape, dtype const &dt) { dtype 186 python_bindings/numpy/ndarray.cpp ndarray zeros(int nd, Py_intptr_t const *shape, dtype const &dt) { dtype 190 python_bindings/numpy/ndarray.cpp ndarray empty(python::tuple const &shape, dtype const &dt) { dtype 198 python_bindings/numpy/ndarray.cpp ndarray empty(int nd, Py_intptr_t const *shape, dtype const &dt) { dtype 206 python_bindings/numpy/ndarray.cpp ndarray array(python::object const &obj, dtype const &dt) { dtype 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) { dtype 85 python_bindings/numpy/ndarray.hpp ndarray view(dtype const &dt) const; dtype 88 python_bindings/numpy/ndarray.hpp ndarray astype(dtype const &dt) const; dtype 108 python_bindings/numpy/ndarray.hpp dtype get_dtype() const; dtype 149 python_bindings/numpy/ndarray.hpp ndarray zeros(python::tuple const &shape, dtype const &dt); dtype 150 python_bindings/numpy/ndarray.hpp ndarray zeros(int nd, Py_intptr_t const *shape, dtype const &dt); dtype 155 python_bindings/numpy/ndarray.hpp ndarray empty(python::tuple const &shape, dtype const &dt); dtype 156 python_bindings/numpy/ndarray.hpp ndarray empty(int nd, Py_intptr_t const *shape, dtype const &dt); dtype 164 python_bindings/numpy/ndarray.hpp ndarray array(python::object const &obj, dtype const &dt); dtype 169 python_bindings/numpy/ndarray.hpp dtype const &dt, dtype 177 python_bindings/numpy/ndarray.hpp dtype const &dt, dtype 189 python_bindings/numpy/ndarray.hpp dtype const &dt, dtype 212 python_bindings/numpy/ndarray.hpp dtype const &dt, dtype 236 python_bindings/numpy/ndarray.hpp dtype const &dt, dtype 253 python_bindings/numpy/ndarray.hpp ndarray from_object(python::object const &obj, dtype const &dt, dtype 256 python_bindings/numpy/ndarray.hpp inline ndarray from_object(python::object const &obj, dtype const &dt, dtype 261 python_bindings/numpy/ndarray.hpp inline ndarray from_object(python::object const &obj, dtype const &dt, ndarray::bitflag flags = ndarray::NONE) { dtype 28 python_bindings/numpy/numpy.cpp dtype::register_scalar_converters(); dtype 481 python_bindings/python/Image.cpp bn::dtype type_to_dtype(const h::Type &t) { dtype 482 python_bindings/python/Image.cpp if (t == h::UInt(8)) return bn::dtype::get_builtin<uint8_t>(); dtype 483 python_bindings/python/Image.cpp if (t == h::UInt(16)) return bn::dtype::get_builtin<uint16_t>(); dtype 484 python_bindings/python/Image.cpp if (t == h::UInt(32)) return bn::dtype::get_builtin<uint32_t>(); dtype 485 python_bindings/python/Image.cpp if (t == h::Int(8)) return bn::dtype::get_builtin<int8_t>(); dtype 486 python_bindings/python/Image.cpp if (t == h::Int(16)) return bn::dtype::get_builtin<int16_t>(); dtype 487 python_bindings/python/Image.cpp if (t == h::Int(32)) return bn::dtype::get_builtin<int32_t>(); dtype 488 python_bindings/python/Image.cpp if (t == h::Float(32)) return bn::dtype::get_builtin<float>(); dtype 489 python_bindings/python/Image.cpp if (t == h::Float(64)) return bn::dtype::get_builtin<double>(); dtype 491 python_bindings/python/Image.cpp return bn::dtype::get_builtin<uint8_t>(); dtype 494 python_bindings/python/Image.cpp h::Type dtype_to_type(const bn::dtype &t) { dtype 495 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<uint8_t>()) return h::UInt(8); dtype 496 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<uint16_t>()) return h::UInt(16); dtype 497 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<uint32_t>()) return h::UInt(32); dtype 498 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<int8_t>()) return h::Int(8); dtype 499 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<int16_t>()) return h::Int(16); dtype 500 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<int32_t>()) return h::Int(32); dtype 501 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<float>()) return h::Float(32); dtype 502 python_bindings/python/Image.cpp if (t == bn::dtype::get_builtin<double>()) return h::Float(64);