Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ ndim
Method
ndim
include/pybind11/numpy.h:1142–1142 ·
view source on GitHub ↗
Number of dimensions
Source
from the content-addressed store, hash-verified
1140
1141
/// Number of dimensions
1142
ssize_t ndim() const { return detail::array_proxy(m_ptr)->nd; }
1143
1144
/// Base object
1145
object base() const { return reinterpret_borrow<object>(detail::array_proxy(m_ptr)->base); }
Callers
9
test_array_attributes
Function · 0.45
test_shape_strides_span
Function · 0.45
test_dtype_refcount_leak
Function · 0.45
auxiliaries
Function · 0.45
TEST_SUBMODULE
Function · 0.45
conformable
Method · 0.45
load
Method · 0.45
load
Function · 0.45
load
Method · 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
test_dtype_refcount_leak
Function · 0.36
auxiliaries
Function · 0.36
TEST_SUBMODULE
Function · 0.36