MCPcopy Create free account
hub / github.com/davisking/dlib / size

Method size

dlib/external/pybind11/include/pybind11/numpy.h:923–925  ·  view source on GitHub ↗

Total number of elements

Source from the content-addressed store, hash-verified

921
922 /// Total number of elements
923 ssize_t size() const {
924 return std::accumulate(shape(), shape() + ndim(), (ssize_t) 1, std::multiplies<ssize_t>());
925 }
926
927 /// Byte size of a single element
928 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
initialize_genericMethod · 0.45
dispatcherMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected