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

Method empty

cpp/nd/array.hpp:548–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546 }
547
548 inline bool empty() const
549 {
550 if (is_dynamic()) {
551 return (size() == 0);
552 }
553 if (has_data_) {
554 return data().empty();
555 }
556 auto sh = shape();
557 return std::ranges::find(sh, 0u) != sh.end();
558 }
559
560 inline uint64_t volume() const
561 {

Callers 14

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
operator[]Method · 0.45
nonzeroMethod · 0.45
getMethod · 0.45
get_rangeMethod · 0.45
is_arrayMethod · 0.45
dict_arrayMethod · 0.45
dtypeMethod · 0.45
dimensionsMethod · 0.45

Calls 4

sizeFunction · 0.85
shapeClass · 0.85
dataFunction · 0.50
endMethod · 0.45

Tested by

no test coverage detected