MCPcopy Create free account
hub / github.com/ai-techsystems/deepC / data

Method data

include/core/tensor.h:391–394  ·  view source on GitHub ↗

\brief return 1D flat array

Source from the content-addressed store, hash-verified

389
390 /// \brief return 1D flat array
391 const std::vector<T> data() const {
392 return isnull() ? std::vector<T>()
393 : std::vector<T>(_mem_layout, _mem_layout + this->length());
394 }
395
396 // public methods
397

Callers 15

assert_lessMethod · 0.45
assert_equalMethod · 0.45
assert_allcloseMethod · 0.45
test_Sign1DMethod · 0.45
test_Sign2DMethod · 0.45
test_Sign3DMethod · 0.45
test_Sign4DMethod · 0.45
test_EyeLike2D_bool_1Method · 0.45
test_EyeLike2D_bool_2Method · 0.45
test_EyeLike2D_bool_3Method · 0.45
test_EyeLike2D_int_1Method · 0.45
test_EyeLike2D_int_2Method · 0.45

Calls 1

lengthMethod · 0.45

Tested by 15

assert_lessMethod · 0.36
assert_equalMethod · 0.36
assert_allcloseMethod · 0.36
test_Sign1DMethod · 0.36
test_Sign2DMethod · 0.36
test_Sign3DMethod · 0.36
test_Sign4DMethod · 0.36
test_EyeLike2D_bool_1Method · 0.36
test_EyeLike2D_bool_2Method · 0.36
test_EyeLike2D_bool_3Method · 0.36
test_EyeLike2D_int_1Method · 0.36
test_EyeLike2D_int_2Method · 0.36