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

Function TEST

test/median.cpp:161–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159MEDIAN(double, double)
160
161TEST(Median, OneElement) {
162 af::array in = randu(1, f32);
163
164 af::array out = median(in);
165 ASSERT_ARRAYS_EQ(in, out);
166}
167
168TEST(Median, TwoElements) {
169 af::array in = randu(2, f32);

Callers

nothing calls this directly

Calls 3

randuFunction · 0.85
medianFunction · 0.50
meanFunction · 0.50

Tested by

no test coverage detected