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

Function TEST

test/gfor.cpp:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32using std::vector;
33
34TEST(GFOR, Assign_Scalar_Span) {
35 const int num = 1000;
36 const float val = 3;
37 array A = randu(num);
38
39 gfor(seq ii, num) { A(ii) = val; }
40
41 float *hA = A.host<float>();
42
43 for (int i = 0; i < num; i++) { ASSERT_EQ(hA[i], val); }
44
45 freeHost(hA);
46}
47
48TEST(GFOR, Assign_Scalar_Seq) {
49 const int num = 1000;

Callers 1

gfor.cppFile · 0.70

Calls 9

randuFunction · 0.85
freeHostFunction · 0.85
constantFunction · 0.85
seqClass · 0.85
matmulFunction · 0.50
iotaFunction · 0.50
dim4Class · 0.50
copyMethod · 0.45
dimsMethod · 0.45

Tested by

no test coverage detected