Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
159
MEDIAN(double, double)
160
161
TEST(Median, OneElement) {
162
af::array in = randu(1, f32);
163
164
af::array out = median(in);
165
ASSERT_ARRAYS_EQ(in, out);
166
}
167
168
TEST(Median, TwoElements) {
169
af::array in = randu(2, f32);
Callers
nothing calls this directly
Calls
3
randu
Function · 0.85
median
Function · 0.50
mean
Function · 0.50
Tested by
no test coverage detected