Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_less
Method · 0.45
assert_equal
Method · 0.45
assert_allclose
Method · 0.45
test_Sign1D
Method · 0.45
test_Sign2D
Method · 0.45
test_Sign3D
Method · 0.45
test_Sign4D
Method · 0.45
test_EyeLike2D_bool_1
Method · 0.45
test_EyeLike2D_bool_2
Method · 0.45
test_EyeLike2D_bool_3
Method · 0.45
test_EyeLike2D_int_1
Method · 0.45
test_EyeLike2D_int_2
Method · 0.45
Calls
1
length
Method · 0.45
Tested by
15
assert_less
Method · 0.36
assert_equal
Method · 0.36
assert_allclose
Method · 0.36
test_Sign1D
Method · 0.36
test_Sign2D
Method · 0.36
test_Sign3D
Method · 0.36
test_Sign4D
Method · 0.36
test_EyeLike2D_bool_1
Method · 0.36
test_EyeLike2D_bool_2
Method · 0.36
test_EyeLike2D_bool_3
Method · 0.36
test_EyeLike2D_int_1
Method · 0.36
test_EyeLike2D_int_2
Method · 0.36