Lines Matching refs:nd
239 int nd = len(shape); in zeros() local
240 boost::scoped_array<Py_intptr_t> dims(new Py_intptr_t[nd]); in zeros()
241 for (int n=0; n<nd; ++n) dims[n] = python::extract<Py_intptr_t>(shape[n]); in zeros()
243 (PyArray_Zeros(nd, dims.get(), detail::incref_dtype(dt), 0))); in zeros()
246 ndarray zeros(int nd, Py_intptr_t const * shape, dtype const & dt) in zeros() argument
249 (PyArray_Zeros(nd, const_cast<Py_intptr_t*>(shape), detail::incref_dtype(dt), 0))); in zeros()
254 int nd = len(shape); in empty() local
255 boost::scoped_array<Py_intptr_t> dims(new Py_intptr_t[nd]); in empty()
256 for (int n=0; n<nd; ++n) dims[n] = python::extract<Py_intptr_t>(shape[n]); in empty()
258 (PyArray_Empty(nd, dims.get(), detail::incref_dtype(dt), 0))); in empty()
261 ndarray empty(int nd, Py_intptr_t const * shape, dtype const & dt) in empty() argument
264 (PyArray_Empty(nd, const_cast<Py_intptr_t*>(shape), detail::incref_dtype(dt), 0))); in empty()