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

Function calc_norm

test/sparse_common.hpp:63–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63static 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
68template<typename T>
69static void sparseTester(const int m, const int n, const int k, int factor,

Callers 2

sparseTesterFunction · 0.85
sparseTransposeTesterFunction · 0.85

Calls 1

absFunction · 0.70

Tested by

no test coverage detected