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

Method array

cpp/nd/array.hpp:369–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367 }
368
369 explicit array(std::string value)
370 : dtype_(dtype::string)
371 , mode_(mode_t::scalar_inplace)
372 , has_data_(true)
373 {
374 const auto size = value.size();
375 ASSERT(size <= s_array_bytes);
376 data_.raw[0] = static_cast<char>(static_cast<uint8_t>(size));
377 std::memcpy(&data_.raw[1], &value[0], size);
378 }
379
380public:
381 array() = default;

Callers

nothing calls this directly

Calls 11

dtype_is_numericFunction · 0.85
get_rawMethod · 0.80
get_allocatedMethod · 0.80
copy_toMethod · 0.80
move_toMethod · 0.80
sizeMethod · 0.45
dtypeMethod · 0.45
is_dynamicMethod · 0.45
dimensionsMethod · 0.45
shapeMethod · 0.45
holderMethod · 0.45

Tested by

no test coverage detected