Home
last modified time | relevance | path

Searched refs:isclose (Results 1 – 25 of 26) sorted by relevance

12

/external/python/pybind11/tests/
Dtest_sequences_and_iterators.py7 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)
Dtest_numpy_vectorize.py9 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/
DbezierTools.py926 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):
Dpy23.py53 isclose = _math.isclose variable
/external/fonttools/Lib/fontTools/colorLib/
Dgeometry.py3 from math import copysign, cos, hypot, isclose, pi
68 isclose(outer_circle.radius, dist, rel_tol=_CIRCLE_INSIDE_TOLERANCE)
/external/fonttools/Tests/pens/
Dutils.py17 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/
Dpy23_test.py12 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/
D3.5.0b2.rst65 Add math.isclose() and cmath.isclose() functions as per :pep:`485`. Contributed
/external/armnn/python/pyarmnn/examples/tests/
Dtest_mfcc.py59 assert np.isclose(mel, test_out)
67 assert np.isclose(mel, test_out)
/external/python/cpython3/Lib/test/
Dtest_cmath.py599 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)
Dtest_math.py798 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),
Dtest_statistics.py2182 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.py104 match_amplitude = math.isclose(
/external/python/jinja/tests/
Dtest_nativetypes.py144 assert math.isclose(result, 0.0007)
/external/tensorflow/tensorflow/python/ops/numpy_ops/
Dnp_math_ops_test.py206 np_math_ops.isclose(a, b, equal_nan=equal_nan),
207 np.isclose(a, b, equal_nan=equal_nan))
Dnp_math_ops.py463 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/
Dtopk_op_test.py83 if np.isclose(values[batch_index, index],
/external/tensorflow/tensorflow/python/kernel_tests/proto/
Ddecode_proto_op_test_base.py61 np.isclose(vs[i], ev), 'expected %r, actual %r' % (ev, vs[i]))
/external/python/cpython3/Doc/whatsnew/
D3.5.rst610 :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/
Dtpu_embedding_v2_utils.py942 …and math.isclose(initializer.stddev, 1/math.sqrt(self.dim))): # pytype: disable=module-attr (math…
/external/grpc-grpc/tools/run_tests/
Drun_tests.py1301 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/
Drun_tests.py1347 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/
Dcmath.rst211 .. function:: isclose(a, b, *, rel_tol=1e-09, abs_tol=0.0)
Dmath.rst144 .. function:: isclose(a, b, *, rel_tol=1e-09, abs_tol=0.0)
/external/tensorflow/third_party/py/numpy/tf_numpy_api/
Dtensorflow.experimental.numpy.pbtxt492 name: "isclose"

12