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

Method shape_span

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

Dimensions of the array as a span

Source from the content-addressed store, hash-verified

1150#ifdef PYBIND11_HAS_SPAN
1151 /// Dimensions of the array as a span
1152 std::span<const ssize_t, std::dynamic_extent> shape_span() const {
1153 return std::span(shape(), static_cast<std::size_t>(ndim()));
1154 }
1155#endif
1156
1157 /// Dimension along a given axis

Callers 2

test_shape_strides_spanFunction · 0.80
TEST_SUBMODULEFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_shape_strides_spanFunction · 0.64
TEST_SUBMODULEFunction · 0.64