MCPcopy Create free account
hub / github.com/pybind/pybind11 / ndim

Method ndim

include/pybind11/numpy.h:712–712  ·  view source on GitHub ↗

Returns the number of dimensions of the array

Source from the content-addressed store, hash-verified

710
711 /// Returns the number of dimensions of the array
712 ssize_t ndim() const { return dims_; }
713
714 /// Returns the total number of elements in the referenced array, i.e. the product of the
715 /// shapes

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected