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

Method nbytes

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

Total number of bytes

Source from the content-addressed store, hash-verified

1137
1138 /// Total number of bytes
1139 ssize_t nbytes() const { return size() * itemsize(); }
1140
1141 /// Number of dimensions
1142 ssize_t ndim() const { return detail::array_proxy(m_ptr)->nd; }

Callers 5

test_array_attributesFunction · 0.45
dataFunction · 0.45
auxiliariesFunction · 0.45
TEST_SUBMODULEFunction · 0.45

Calls 1

itemsizeFunction · 0.85

Tested by 4

test_array_attributesFunction · 0.36
dataFunction · 0.36
auxiliariesFunction · 0.36
TEST_SUBMODULEFunction · 0.36