MCPcopy 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_attributesFunction · 0.45
test_shape_strides_spanFunction · 0.45
test_dtype_refcount_leakFunction · 0.45
auxiliariesFunction · 0.45
TEST_SUBMODULEFunction · 0.45
conformableMethod · 0.45
loadMethod · 0.45
loadFunction · 0.45
loadMethod · 0.45

Calls 1

array_proxyFunction · 0.85

Tested by 5

test_array_attributesFunction · 0.36
test_shape_strides_spanFunction · 0.36
test_dtype_refcount_leakFunction · 0.36
auxiliariesFunction · 0.36
TEST_SUBMODULEFunction · 0.36