MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / cpp_scope_arr_test

Function cpp_scope_arr_test

test/index.cpp:1084–1088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1082}
1083
1084array cpp_scope_arr_test(const int num, const float val) {
1085 array a = constant(val, num);
1086 array idx = where(a > val / 2);
1087 return a(idx) * (val - 1);
1088}
1089
1090TEST(SeqIndex, CPP_SCOPE_ARR) {
1091 const int num = 20;

Callers 1

TESTFunction · 0.85

Calls 2

constantFunction · 0.85
whereFunction · 0.50

Tested by

no test coverage detected