Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_attributes
Function · 0.45
test_shape_strides_span
Function · 0.45
auxiliaries
Function · 0.45
TEST_SUBMODULE
Function · 0.45
dispatch_array_increment
Function · 0.45
conformable
Method · 0.45
get_shape_for_array
Function · 0.45
Calls
1
array_proxy
Function · 0.85
Tested by
5
test_array_attributes
Function · 0.36
test_shape_strides_span
Function · 0.36
auxiliaries
Function · 0.36
TEST_SUBMODULE
Function · 0.36
dispatch_array_increment
Function · 0.36