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

Method shape

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

Returns the shape (i.e. size) of dimension `dim`

Source from the content-addressed store, hash-verified

707
708 /// Returns the shape (i.e. size) of dimension `dim`
709 ssize_t shape(ssize_t dim) const { return shape_[(size_t) dim]; }
710
711 /// Returns the number of dimensions of the array
712 ssize_t ndim() const { return dims_; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected