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

Function TEST

test/empty.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20class Array : public ::testing::Test {};
21
22TEST(Array, TestEmptyAssignment) {
23 array A = randu(5, f32);
24 array C = constant(0, 0);
25 array B = A(isNaN(A));
26 A(isNaN(A)) = C;
27 ASSERT_EQ(B.numdims(), 0u);
28 ASSERT_EQ(A.numdims(), 1u);
29 ASSERT_EQ(lookup(constant(1, 9), constant(0, 0)).numdims(), 0u);
30}
31
32TEST(Array, TestEmptySigProc) {
33 ASSERT_EQ(convolve(constant(1, 1), constant(0, 0)).numdims(), 1u);

Callers

nothing calls this directly

Calls 15

randuFunction · 0.85
constantFunction · 0.85
isNaNFunction · 0.85
convolve3Function · 0.85
seqClass · 0.85
fftInPlaceFunction · 0.85
fft2InPlaceFunction · 0.85
fft3InPlaceFunction · 0.85
ifftInPlaceFunction · 0.85
ifft2InPlaceFunction · 0.85
ifft3InPlaceFunction · 0.85
fftNormFunction · 0.85

Tested by

no test coverage detected