| 155 | }); |
| 156 | |
| 157 | TEST_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 | |
| 170 | TEST_P(Norm, Random_AF_NORM_MATRIX_1) { |
| 171 | using std::get; |
nothing calls this directly
no test coverage detected