Home
last modified time | relevance | path

Searched refs:rel_err (Results 1 – 7 of 7) sorted by relevance

/external/jemalloc_new/test/unit/
Dmath.c18 double rel_err; in double_eq_rel() local
23 rel_err = (fabs(b) > fabs(a)) ? fabs((a-b)/b) : fabs((a-b)/a); in double_eq_rel()
24 return (rel_err < max_rel_err); in double_eq_rel()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dexhaustive_op_test_utils.h36 float rel_err; member
44 ErrorSpec(float a, float r) : abs_err(a), rel_err(r) {} in ErrorSpec()
473 double rel_err = abs_err / std::abs(ReplaceInfWithMax(expected));
475 return abs_err <= spec.abs_err || rel_err <= spec.rel_err;
Dexhaustive_unary_test_f32_or_smaller.cc625 spec.rel_err = 0.001; in __anon1843a2951f02()
/external/python/cpython2/Lib/test/
Dtest_cmath.py64 def rAssertAlmostEqual(self, a, b, rel_err = 2e-15, abs_err = 5e-323, argument
109 if absolute_error <= max(abs_err, rel_err * abs(a)):
Dtest_math.py63 def acc_check(expected, got, rel_err=2e-15, abs_err = 5e-323): argument
76 permitted_error = max(abs_err, rel_err * abs(expected))
997 rel_err = 5e-15,
/external/python/cpython3/Lib/test/
Dtest_cmath.py101 def rAssertAlmostEqual(self, a, b, rel_err = 2e-15, abs_err = 5e-323, argument
146 if absolute_error <= max(abs_err, rel_err * abs(a)):
Dtest_statistics.py77 rel_err = abs_err/base if base else float('inf')
78 return (abs_err, rel_err)
286 abs_err, rel_err = _calc_errors(first, second)
287 return template % (first, second, tol, rel, abs_err, rel_err)
653 abs_err, rel_err = _calc_errors(first, second)
658 'relative error = %r' % rel_err,