Lines Matching refs:shape
125 l.append(r.shape(0));
126 l.append(r.shape(1));
161 sm.def("shape", [](const arr& a) { return arr(a.ndim(), a.shape()); });
162 sm.def("shape", [](const arr& a, ssize_t dim) { return a.shape(dim); });
191 // test numpy scalars (empty shape, ndim==0)
198 {a.shape(), a.shape() + a.ndim()},
284 for (ssize_t i = 0; i < r.shape(0); i++)
285 for (ssize_t j = 0; j < r.shape(1); j++)
292 for (ssize_t i = 0; i < r.shape(0); i++)
293 for (ssize_t j = 0; j < r.shape(1); j++)
294 for (ssize_t k = 0; k < r.shape(2); k++)
301 for (ssize_t k = 0; k < r.shape(2); k++)
302 for (ssize_t j = 0; j < r.shape(1); j++)
303 for (ssize_t i = 0; i < r.shape(0); i++)
310 for (ssize_t i = 0; i < r.shape(0); i++)
326 for (ssize_t i = 0; i < r.shape(0); i++)
327 for (ssize_t j = 0; j < r.shape(1); j++)
334 for (ssize_t i = 0; i < r.shape(0); i++)
335 for (ssize_t j = 0; j < r.shape(1); j++)
336 for (ssize_t k = 0; k < r.shape(2); k++)