/external/python/pybind11/tests/ |
D | test_sequences_and_iterators.py | 7 def isclose(a, b, rel_tol=1e-05, abs_tol=0.0): function 14 isclose(a, b, rel_tol=rel_tol, abs_tol=abs_tol) for a, b in zip(a_list, b_list) 64 assert isclose(s[0], 12.34) and isclose(s[3], 56.78)
|
D | test_numpy_vectorize.py | 9 assert np.isclose(m.vectorized_func3(np.array(3 + 7j)), [6 + 14j]) 13 assert np.isclose(f(1, 2, 3), 6) 16 assert np.isclose(f(np.array(1), np.array(2), 3), 6)
|
/external/fonttools/Lib/fontTools/misc/ |
D | bezierTools.py | 926 math.isclose(s2x, e2x) and math.isclose(s1x, e1x) and not math.isclose(s1x, s2x) 930 math.isclose(s2y, e2y) and math.isclose(s1y, e1y) and not math.isclose(s1y, s2y) 933 if math.isclose(s2x, e2x) and math.isclose(s2y, e2y): # Line segment is tiny 935 if math.isclose(s1x, e1x) and math.isclose(s1y, e1y): # Line segment is tiny 937 if math.isclose(e1x, s1x): 947 if math.isclose(s2x, e2x): 960 if math.isclose(slope12, slope34):
|
D | py23.py | 53 isclose = _math.isclose variable
|
/external/fonttools/Lib/fontTools/colorLib/ |
D | geometry.py | 3 from math import copysign, cos, hypot, isclose, pi 68 isclose(outer_circle.radius, dist, rel_tol=_CIRCLE_INSIDE_TOLERANCE)
|
/external/fonttools/Tests/pens/ |
D | utils.py | 17 from math import isclose 149 not isclose(x1, x2, rel_tol=rel_tol) or 150 not isclose(y1, y2, rel_tol=rel_tol)
|
/external/fonttools/Tests/misc/ |
D | py23_test.py | 12 round2, round3, isclose, redirect_stdout, redirect_stderr) 264 isclose = staticmethod(isclose) variable in IsCloseTests 268 self.isclose(a, b, *args, **kwargs), 273 self.isclose(a, b, *args, **kwargs),
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.5.0b2.rst | 65 Add math.isclose() and cmath.isclose() functions as per :pep:`485`. Contributed
|
/external/armnn/python/pyarmnn/examples/tests/ |
D | test_mfcc.py | 59 assert np.isclose(mel, test_out) 67 assert np.isclose(mel, test_out)
|
/external/python/cpython3/Lib/test/ |
D | test_cmath.py | 599 isclose = cmath.isclose variable in IsCloseTests 603 self.isclose(1j, 1j, rel_tol=1j) 606 self.isclose(1j, 1j, abs_tol=1j) 609 self.isclose(1j, 1j, rel_tol=1j, abs_tol=1j)
|
D | test_math.py | 798 self.assertTrue(math.isclose(hypot(*([fourthmax]*n)), 971 self.assertTrue(math.isclose(dist(p, q), fourthmax * math.sqrt(n))) 972 self.assertTrue(math.isclose(dist(q, p), fourthmax * math.sqrt(n))) 2092 isclose = math.isclose # subclasses should override this variable in IsCloseTests 2095 self.assertTrue(self.isclose(a, b, *args, **kwargs), 2099 self.assertFalse(self.isclose(a, b, *args, **kwargs),
|
D | test_statistics.py | 2182 self.assertTrue(math.isclose(gm_float, float(gm_decimal))) 2208 self.assertTrue(math.isclose(big_gm, 36.0 * large)) 2214 self.assertTrue(math.isclose(small_gm, 36.0 * small)) 2298 self.assertTrue(all(math.isclose(e, a) for e, a in zip(exp, act))) 2338 self.assertTrue(all(math.isclose(e, a) for e, a in zip(exp, act))) 2715 self.assertTrue(all(math.isclose(e, a, abs_tol=0.0001)
|
/external/pandora/mmi2grpc/mmi2grpc/ |
D | _audio.py | 104 match_amplitude = math.isclose(
|
/external/python/jinja/tests/ |
D | test_nativetypes.py | 144 assert math.isclose(result, 0.0007)
|
/external/tensorflow/tensorflow/python/ops/numpy_ops/ |
D | np_math_ops_test.py | 206 np_math_ops.isclose(a, b, equal_nan=equal_nan), 207 np.isclose(a, b, equal_nan=equal_nan))
|
D | np_math_ops.py | 463 def isclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False): # pylint: disable=missing-docstring function 483 isclose(a, b, rtol=rtol, atol=atol, equal_nan=equal_nan))
|
/external/tensorflow/tensorflow/python/kernel_tests/math_ops/ |
D | topk_op_test.py | 83 if np.isclose(values[batch_index, index],
|
/external/tensorflow/tensorflow/python/kernel_tests/proto/ |
D | decode_proto_op_test_base.py | 61 np.isclose(vs[i], ev), 'expected %r, actual %r' % (ev, vs[i]))
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.5.rst | 610 :pep:`485` adds the :func:`math.isclose` and :func:`cmath.isclose` 614 Relative tolerance is the maximum allowed difference between ``isclose`` 620 >>> math.isclose(a, b, rel_tol=1e-5) 622 >>> math.isclose(a, b, rel_tol=1e-6) 631 >>> math.isclose(a, b, abs_tol=0.00003) 633 >>> math.isclose(a, b, abs_tol=0.00001) 888 A new function :func:`~cmath.isclose` provides a way to test for approximate 1451 A new function :func:`~math.isclose` provides a way to test for approximate
|
/external/tensorflow/tensorflow/python/tpu/ |
D | tpu_embedding_v2_utils.py | 942 …and math.isclose(initializer.stddev, 1/math.sqrt(self.dim))): # pytype: disable=module-attr (math…
|
/external/grpc-grpc/tools/run_tests/ |
D | run_tests.py | 1301 def isclose(a, b, rel_tol=1e-09, abs_tol=0.0): function 1781 if not isclose(args.sample_percent, 100.0):
|
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/ |
D | run_tests.py | 1347 def isclose(a, b, rel_tol=1e-09, abs_tol=0.0): function 1824 if not isclose(args.sample_percent, 100.0):
|
/external/python/cpython3/Doc/library/ |
D | cmath.rst | 211 .. function:: isclose(a, b, *, rel_tol=1e-09, abs_tol=0.0)
|
D | math.rst | 144 .. function:: isclose(a, b, *, rel_tol=1e-09, abs_tol=0.0)
|
/external/tensorflow/third_party/py/numpy/tf_numpy_api/ |
D | tensorflow.experimental.numpy.pbtxt | 492 name: "isclose"
|