MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / size

Method size

extern/pybind/include/pybind11/numpy.h:1127–1129  ·  view source on GitHub ↗

Total number of elements

Source from the content-addressed store, hash-verified

1125
1126 /// Total number of elements
1127 ssize_t size() const {
1128 return std::accumulate(shape(), shape() + ndim(), (ssize_t) 1, std::multiplies<ssize_t>());
1129 }
1130
1131 /// Byte size of a single element
1132 ssize_t itemsize() const { return dtype().itemsize(); }

Callers 15

c_stridesFunction · 0.45
f_stridesFunction · 0.45
buffer_infoMethod · 0.45
loadMethod · 0.45
castMethod · 0.45
loadMethod · 0.45
make_tupleFunction · 0.45
processMethod · 0.45
dispatcherMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected