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

Function rankBig

test/rank_dense.cpp:58–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57template<typename T>
58void rankBig(const int num) {
59 SUPPORTED_TYPE_CHECK(T);
60 LAPACK_ENABLED_CHECK();
61
62 dtype dt = (dtype)dtype_traits<T>::af_type;
63 array a = randu(num, num, dt);
64 ASSERT_EQ(num, (int)rank(a));
65
66 array b = randu(num, num / 2, dt);
67 ASSERT_EQ(num / 2, (int)rank(b));
68 ASSERT_EQ(num / 2, (int)rank(transpose(b)));
69}
70
71template<typename T>
72void rankLow(const int num) {

Callers

nothing calls this directly

Calls 3

randuFunction · 0.85
rankFunction · 0.50
transposeFunction · 0.50

Tested by

no test coverage detected