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

Method strides_span

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

Strides of the array as a span

Source from the content-addressed store, hash-verified

1168#ifdef PYBIND11_HAS_SPAN
1169 /// Strides of the array as a span
1170 std::span<const ssize_t, std::dynamic_extent> strides_span() const {
1171 return std::span(strides(), static_cast<std::size_t>(ndim()));
1172 }
1173#endif
1174
1175 /// Stride 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