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

Function TEST_P

test/norm.cpp:157–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 });
156
157TEST_P(Norm, Identity_AF_NORM_MATRIX_1) {
158 using std::get;
159 norm_params param = GetParam();
160 if (get<1>(param) == f16) SUPPORTED_TYPE_CHECK(half_float::half);
161 if (get<1>(param) == f64) SUPPORTED_TYPE_CHECK(double);
162
163 array identity = af::identity(get<0>(param), get<1>(param));
164 double result = norm(identity, AF_NORM_MATRIX_1);
165 double norm1 = cpu_norm1(identity);
166
167 ASSERT_DOUBLE_EQ(norm1, result);
168}
169
170TEST_P(Norm, Random_AF_NORM_MATRIX_1) {
171 using std::get;

Callers

nothing calls this directly

Calls 6

cpu_norm1Function · 0.85
randuFunction · 0.85
cpu_norm_pqFunction · 0.85
cpu_norm_infFunction · 0.85
identityFunction · 0.50
normFunction · 0.50

Tested by

no test coverage detected