MCPcopy Create free account
hub / github.com/activeloopai/deeplake / size

Method size

cpp/nd/array.hpp:539–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537 }
538
539 inline uint32_t size() const
540 {
541 auto s = shape();
542 if (s.empty()) {
543 throw invalid_operation("Can't get size of scalar array.");
544 }
545 return static_cast<uint32_t>(s[0]);
546 }
547
548 inline bool empty() const
549 {

Callers 15

data_iteratorMethod · 0.45
operator++Method · 0.45
operator--Method · 0.45
operator+=Method · 0.45
operator-=Method · 0.45
operator-Method · 0.45
endMethod · 0.45
arrayMethod · 0.45
volumeMethod · 0.45
coord_iteratorMethod · 0.45
coord_iteratorClass · 0.45
shapes_equalFunction · 0.45

Calls 3

shapeClass · 0.85
invalid_operationClass · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected