MCPcopy Create free account
hub / github.com/catboost/catboost / size

Method size

contrib/libs/pybind11/include/pybind11/numpy.h:931–933  ·  view source on GitHub ↗

Total number of elements

Source from the content-addressed store, hash-verified

929
930 /// Total number of elements
931 ssize_t size() const {
932 return std::accumulate(shape(), shape() + ndim(), (ssize_t) 1, std::multiplies<ssize_t>());
933 }
934
935 /// Byte size of a single element
936 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 2

accumulateFunction · 0.50
shapeFunction · 0.50

Tested by

no test coverage detected