Lines Matching refs:ndarray
14 NUMPY_OBJECT_MANAGER_TRAITS_IMPL(PyArray_Type, numpy::ndarray)
22 ndarray::bitflag numpy_to_bitflag(int const f) in numpy_to_bitflag()
24 ndarray::bitflag r = ndarray::NONE; in numpy_to_bitflag()
25 if (f & NPY_ARRAY_C_CONTIGUOUS) r = (r | ndarray::C_CONTIGUOUS); in numpy_to_bitflag()
26 if (f & NPY_ARRAY_F_CONTIGUOUS) r = (r | ndarray::F_CONTIGUOUS); in numpy_to_bitflag()
27 if (f & NPY_ARRAY_ALIGNED) r = (r | ndarray::ALIGNED); in numpy_to_bitflag()
28 if (f & NPY_ARRAY_WRITEABLE) r = (r | ndarray::WRITEABLE); in numpy_to_bitflag()
32 int bitflag_to_numpy(ndarray::bitflag f) in bitflag_to_numpy()
35 if (f & ndarray::C_CONTIGUOUS) r |= NPY_ARRAY_C_CONTIGUOUS; in bitflag_to_numpy()
36 if (f & ndarray::F_CONTIGUOUS) r |= NPY_ARRAY_F_CONTIGUOUS; in bitflag_to_numpy()
37 if (f & ndarray::ALIGNED) r |= NPY_ARRAY_ALIGNED; in bitflag_to_numpy()
38 if (f & ndarray::WRITEABLE) r |= NPY_ARRAY_WRITEABLE; in bitflag_to_numpy()
86 ndarray from_data_impl(void * data, in from_data_impl()
108 ndarray from_data_impl(void * data, in from_data_impl()
126 ndarray r(python::detail::new_reference in from_data_impl()
155 Py_intptr_t ndarray::shape(int n) const in shape()
160 Py_intptr_t ndarray::strides(int n) const in strides()
165 ndarray ndarray::view(dtype const & dt) const in view()
167 return ndarray(python::detail::new_reference in view()
171 ndarray ndarray::astype(dtype const & dt) const in astype()
173 return ndarray(python::detail::new_reference in astype()
177 ndarray ndarray::copy() const in copy()
179 return ndarray(python::detail::new_reference in copy()
183 dtype ndarray::get_dtype() const in get_dtype()
188 python::object ndarray::get_base() const in get_base()
194 void ndarray::set_base(object const & base) in set_base()
208 ndarray::bitflag ndarray::get_flags() const in get_flags()
213 ndarray ndarray::transpose() const in transpose()
215 return ndarray(python::detail::new_reference in transpose()
219 ndarray ndarray::squeeze() const in squeeze()
221 return ndarray(python::detail::new_reference in squeeze()
225 ndarray ndarray::reshape(python::tuple const & shape) const in reshape()
227 return ndarray(python::detail::new_reference in reshape()
231 python::object ndarray::scalarize() const in scalarize()
237 ndarray zeros(python::tuple const & shape, dtype const & dt) in zeros()
242 return ndarray(python::detail::new_reference in zeros()
246 ndarray zeros(int nd, Py_intptr_t const * shape, dtype const & dt) in zeros()
248 return ndarray(python::detail::new_reference in zeros()
252 ndarray empty(python::tuple const & shape, dtype const & dt) in empty()
257 return ndarray(python::detail::new_reference in empty()
261 ndarray empty(int nd, Py_intptr_t const * shape, dtype const & dt) in empty()
263 return ndarray(python::detail::new_reference in empty()
267 ndarray array(python::object const & obj) in array()
269 return ndarray(python::detail::new_reference in array()
273 ndarray array(python::object const & obj, dtype const & dt) in array()
275 return ndarray(python::detail::new_reference in array()
279 ndarray from_object(python::object const & obj, dtype const & dt, int nd_min, int nd_max, ndarray::… in from_object()
282 return ndarray(python::detail::new_reference in from_object()
290 ndarray from_object(python::object const & obj, int nd_min, int nd_max, ndarray::bitflag flags) in from_object()
293 return ndarray(python::detail::new_reference in from_object()