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

Method shape

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

Dimensions of the array

Source from the content-addressed store, hash-verified

1146
1147 /// Dimensions of the array
1148 const ssize_t *shape() const { return detail::array_proxy(m_ptr)->dimensions; }
1149
1150#ifdef PYBIND11_HAS_SPAN
1151 /// Dimensions of the array as a span

Callers 7

test_array_attributesFunction · 0.45
test_shape_strides_spanFunction · 0.45
auxiliariesFunction · 0.45
TEST_SUBMODULEFunction · 0.45
dispatch_array_incrementFunction · 0.45
conformableMethod · 0.45
get_shape_for_arrayFunction · 0.45

Calls 1

array_proxyFunction · 0.85

Tested by 5

test_array_attributesFunction · 0.36
test_shape_strides_spanFunction · 0.36
auxiliariesFunction · 0.36
TEST_SUBMODULEFunction · 0.36
dispatch_array_incrementFunction · 0.36