| 61 | } |
| 62 | |
| 63 | static double calc_norm(af::array lhs, af::array rhs) { |
| 64 | return af::max<double>(af::abs(lhs - rhs) / |
| 65 | (af::abs(lhs) + af::abs(rhs) + 1E-5)); |
| 66 | } |
| 67 | |
| 68 | template<typename T> |
| 69 | static void sparseTester(const int m, const int n, const int k, int factor, |
no test coverage detected