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

Method with_numeric_data

cpp/nd/array.hpp:684–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

682
683 template <typename F>
684 inline auto with_numeric_data(F f) const
685 {
686 ASSERT(has_data());
687 return switch_numeric_dtype(dtype(), [this, f]<typename T>() {
688 auto sp = data();
689 auto d = base::span_cast<const T>(sp);
690 return f.template operator()<T>(d);
691 });
692 }
693
694 inline iterator begin() const
695 {

Callers

nothing calls this directly

Calls 3

switch_numeric_dtypeFunction · 0.85
dtypeEnum · 0.70
dataFunction · 0.50

Tested by

no test coverage detected