Lines Matching defs:ndim
22 ssize_t ndim = 0; // Number of dimensions
28 buffer_info(void *ptr, ssize_t itemsize, const std::string &format, ssize_t ndim,
30 : ptr(ptr), itemsize(itemsize), size(1), format(format), ndim(ndim),
32 if (ndim != (ssize_t) shape.size() || ndim != (ssize_t) strides.size())
33 pybind11_fail("buffer_info: ndim doesn't match shape and/or strides length");
34 for (size_t i = 0; i < (size_t) ndim; ++i)
50 : buffer_info(view->buf, view->itemsize, view->format, view->ndim,
51 {view->shape, view->shape + view->ndim}, {view->strides, view->strides + view->ndim}) {
68 ndim = rhs.ndim;
83 buffer_info(private_ctr_tag, void *ptr, ssize_t itemsize, const std::string &format, ssize_t ndim,
85 : buffer_info(ptr, itemsize, format, ndim, std::move(shape_in), std::move(strides_in)) { }