Home
last modified time | relevance | path

Searched refs:isclose (Results 126 – 150 of 933) sorted by relevance

12345678910>>...38

/dports/cad/py-ezdxf/ezdxf-0.16.3/src/ezdxf/math/
H A Dcircle.py123 if math.isclose(dist, 0., abs_tol=abs_tol):
135 elif math.isclose(dist, self.radius, abs_tol=abs_tol):
170 if math.isclose(d, d_max, abs_tol=abs_tol) or math.isclose(
H A Dline.py50 if math.isclose(self._direction.x, 0., abs_tol=1e-12):
57 self._is_horizontal = math.isclose(self._direction.y, 0., abs_tol=1e-12)
106 return math.isclose(self._slope, other._slope, abs_tol=1e-12)
246 return math.isclose(self.start.x, self.end.x)
251 return math.isclose(self.start.y, self.end.y)
H A D_vector.py12 isclose = partial(math.isclose, abs_tol=ABS_TOL) variable
277 return v1.isclose(
278 v2, rel_tol=rel_tol, abs_tol=abs_tol) or v1.isclose(
345 def isclose(self, other: 'Vertex', *, rel_tol: float = 1e-9, member in Vec3
355 return math.isclose(self._x, x, rel_tol=rel_tol, abs_tol=abs_tol) and \
356 math.isclose(self._y, y, rel_tol=rel_tol, abs_tol=abs_tol) and \
357 math.isclose(self._z, z, rel_tol=rel_tol, abs_tol=abs_tol)
733 def isclose(self, other: 'VecXY', *, rel_tol: float = 1e-9, member in Vec2
737 return math.isclose(
738 self.x, other.x, rel_tol=rel_tol, abs_tol=abs_tol) and math.isclose(
/dports/math/xtensor-python/xtensor-python-0.26.0/docs/source/examples/copy_cast/
H A Dexample.py5 assert np.isclose(np.sum(np.sin(c)), mymodule.sum_of_sines(c))
6 assert np.isclose(np.sum(np.cos(c)), mymodule.sum_of_cosines(c))
/dports/math/xtensor/xtensor-0.24.0/test/
H A Dtest_xmath.cpp713 TEST(xmath, isclose) in TEST() argument
727 EXPECT_FALSE(isclose(a, b)(0, 0)); in TEST()
728 EXPECT_FALSE(isclose(a, b)(0, 0)); in TEST()
730 EXPECT_FALSE(isclose(a, b)(0, 0)); in TEST()
731 EXPECT_TRUE(isclose(a, b, 1, 1, true)(0, 0)); in TEST()
736 EXPECT_FALSE(isclose(1, 2)()); in TEST()
737 EXPECT_TRUE(isclose(1, 2, 1)()); in TEST()
738 EXPECT_TRUE(isclose(1u, 2u, 1u)()); in TEST()
739 EXPECT_TRUE(isclose(1ul, 2ul, 1ul)()); in TEST()
740 EXPECT_TRUE(isclose(1ul, 10ul, 1ul)()); in TEST()
[all …]
/dports/textproc/py-ocrmypdf/ocrmypdf-12.7.2/tests/
H A Dtest_pdfinfo.py9 from math import isclose
87 assert isclose(pdfimage.dpi.x, 8)
88 assert isclose(pdfimage.dpi.y, 8)
103 assert isclose(pdfimage.dpi.x, 8)
115 assert isclose(pdfimage.dpi.x, 150)
H A Dtest_userunit.py8 from math import isclose
42 assert isclose(before[0].width_inches, after[0].width_inches)
/dports/science/py-OpenMC/openmc-0.12.2/tests/regression_tests/cmfd_feed/
H A Dtest.py100 assert(np.isclose(loss_np[int(elem[0]), int(elem[1])], elem[2]))
109 assert(np.isclose(prod_np[int(elem[0]), int(elem[1])], elem[2]))
117 assert(np.all(np.isclose(flux_np, cmfd_run._phi)))
118 assert(np.all(np.isclose(flux_np, flux_dat)))
/dports/cad/netgen/netgen-6.2.2105/external_dependencies/pybind11/tests/
H A Dtest_sequences_and_iterators.py6 def isclose(a, b, rel_tol=1e-05, abs_tol=0.0): function
12 return all(isclose(a, b, rel_tol=rel_tol, abs_tol=abs_tol) for a, b in zip(a_list, b_list))
61 assert isclose(s[0], 12.34) and isclose(s[3], 56.78)
/dports/science/openmc/openmc-0.12.2/tests/regression_tests/cmfd_feed/
H A Dtest.py100 assert(np.isclose(loss_np[int(elem[0]), int(elem[1])], elem[2]))
109 assert(np.isclose(prod_np[int(elem[0]), int(elem[1])], elem[2]))
117 assert(np.all(np.isclose(flux_np, cmfd_run._phi)))
118 assert(np.all(np.isclose(flux_np, flux_dat)))
/dports/devel/nextpnr/nextpnr-48cd407/3rdparty/pybind11/tests/
H A Dtest_sequences_and_iterators.py6 def isclose(a, b, rel_tol=1e-05, abs_tol=0.0): function
12 return all(isclose(a, b, rel_tol=rel_tol, abs_tol=abs_tol) for a, b in zip(a_list, b_list))
61 assert isclose(s[0], 12.34) and isclose(s[3], 56.78)
/dports/devel/py-pint/Pint-0.18/pint/testsuite/
H A Dtest_compat_upcast.py46 assert np.isclose(mean, 2.5 * ureg.K)
76 assert np.all(np.isclose(z0.data, z1.data.to(z0.data.units)))
91 assert np.isclose(ds0["a"].mean().item(), 0.5 * ureg.K)
108 assert np.all(np.isclose(q_to_modify.data, q))
/dports/devel/py-trimesh/trimesh-3.5.25/trimesh/path/
H A Dsegments.py138 util.isclose(angles, np.pi, atol=angle),
139 util.isclose(angles, 0.0, atol=angle))
209 util.isclose(length, pair.sum(axis=1), atol=atol),
210 ~util.isclose(pair, 0.0, atol=atol).any(axis=1))
297 assert np.isclose(np.abs(dot), 1.0, atol=.01)
490 assert np.isclose(length(segments),
/dports/science/py-cirq-aqt/Cirq-0.12.0/cirq-core/cirq/ops/
H A Dcommon_channels.py197 and np.isclose(self.p_i, other.p_i, atol=atol).item()
198 and np.isclose(self.p_x, other.p_x, atol=atol).item()
199 and np.isclose(self.p_y, other.p_y, atol=atol).item()
200 and np.isclose(self.p_z, other.p_z, atol=atol).item()
359 return np.isclose(self.p, other.p, atol=atol).item() and self.n_qubits == other.n_qubits
502 np.isclose(self.gamma, other.gamma, atol=atol).item()
503 and np.isclose(self.p, other.p, atol=atol).item()
635 return np.isclose(self.gamma, other.gamma, atol=atol).item()
875 return np.isclose(self._gamma, other._gamma, atol=atol).item()
984 return np.isclose(self.p, other.p, atol=atol).item()
[all …]
/dports/science/py-cirq-pasqal/Cirq-0.13.1/cirq-core/cirq/ops/
H A Dcommon_channels.py197 and np.isclose(self.p_i, other.p_i, atol=atol).item()
198 and np.isclose(self.p_x, other.p_x, atol=atol).item()
199 and np.isclose(self.p_y, other.p_y, atol=atol).item()
200 and np.isclose(self.p_z, other.p_z, atol=atol).item()
359 return np.isclose(self.p, other.p, atol=atol).item() and self.n_qubits == other.n_qubits
502 np.isclose(self.gamma, other.gamma, atol=atol).item()
503 and np.isclose(self.p, other.p, atol=atol).item()
635 return np.isclose(self.gamma, other.gamma, atol=atol).item()
875 return np.isclose(self._gamma, other._gamma, atol=atol).item()
984 return np.isclose(self.p, other.p, atol=atol).item()
[all …]
/dports/science/py-cirq-google/Cirq-0.13.0/cirq-core/cirq/ops/
H A Dcommon_channels.py197 and np.isclose(self.p_i, other.p_i, atol=atol).item()
198 and np.isclose(self.p_x, other.p_x, atol=atol).item()
199 and np.isclose(self.p_y, other.p_y, atol=atol).item()
200 and np.isclose(self.p_z, other.p_z, atol=atol).item()
359 return np.isclose(self.p, other.p, atol=atol).item() and self.n_qubits == other.n_qubits
502 np.isclose(self.gamma, other.gamma, atol=atol).item()
503 and np.isclose(self.p, other.p, atol=atol).item()
635 return np.isclose(self.gamma, other.gamma, atol=atol).item()
875 return np.isclose(self._gamma, other._gamma, atol=atol).item()
984 return np.isclose(self.p, other.p, atol=atol).item()
[all …]
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-core/cirq/ops/
H A Dcommon_channels.py197 and np.isclose(self.p_i, other.p_i, atol=atol).item()
198 and np.isclose(self.p_x, other.p_x, atol=atol).item()
199 and np.isclose(self.p_y, other.p_y, atol=atol).item()
200 and np.isclose(self.p_z, other.p_z, atol=atol).item()
359 return np.isclose(self.p, other.p, atol=atol).item() and self.n_qubits == other.n_qubits
502 np.isclose(self.gamma, other.gamma, atol=atol).item()
503 and np.isclose(self.p, other.p, atol=atol).item()
635 return np.isclose(self.gamma, other.gamma, atol=atol).item()
875 return np.isclose(self._gamma, other._gamma, atol=atol).item()
984 return np.isclose(self.p, other.p, atol=atol).item()
[all …]
/dports/science/py-cirq-core/Cirq-0.13.1/cirq-core/cirq/ops/
H A Dcommon_channels.py197 and np.isclose(self.p_i, other.p_i, atol=atol).item()
198 and np.isclose(self.p_x, other.p_x, atol=atol).item()
199 and np.isclose(self.p_y, other.p_y, atol=atol).item()
200 and np.isclose(self.p_z, other.p_z, atol=atol).item()
359 return np.isclose(self.p, other.p, atol=atol).item() and self.n_qubits == other.n_qubits
502 np.isclose(self.gamma, other.gamma, atol=atol).item()
503 and np.isclose(self.p, other.p, atol=atol).item()
635 return np.isclose(self.gamma, other.gamma, atol=atol).item()
875 return np.isclose(self._gamma, other._gamma, atol=atol).item()
984 return np.isclose(self.p, other.p, atol=atol).item()
[all …]
/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/tvm/tests/python/unittest/
H A Dtest_format_si_prefix.py18 from numpy import isclose
35 assert isclose(util.format_si_prefix(number, prefix), expected)
/dports/graphics/py-beziers/beziers-0.4.0/beziers/utils/
H A D__init__.py3 from math import isclose
5 def isclose(a, b): function
/dports/cad/py-ezdxf/ezdxf-0.16.3/tests/test_02_dxf_graphics/
H A Dtest_202_circle.py121 assert vertices[0].isclose(Vec3(1, 2 + radius, z))
131 assert vertices[0].isclose(Vec3(-1, 4.5, -3), abs_tol=1e-6)
132 assert vertices[1].isclose(Vec3(1.5, 2, -3), abs_tol=1e-6)
169 assert ocs.to_wcs(circle.dxf.center).isclose(center, abs_tol=1e-9)
H A Dtest_206_text.py253 assert ocs.to_wcs(text2.dxf.insert).isclose(check_point)
254 assert math.isclose(text2.dxf.height, 3.0)
255 assert math.isclose(text2.dxf.width, 2.0 / 3.0)
261 assert math.isclose(text2.dxf.oblique, 33.004491598883064)
/dports/cad/kicad-devel/kicad-a17a58203b33e08b966075833b177dad5740c236/thirdparty/pybind11/tests/
H A 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)
/dports/misc/py-onnx/onnx-1.10.2/third_party/pybind11/tests/
H A 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)
/dports/cad/py-ezdxf/ezdxf-0.16.3/tests/test_08_addons/
H A Dtest_806_acadctb.py128 assert math.isclose(styles.get_lineweight(5), 0.70, abs_tol=1e-6)
143 assert math.isclose(styles.get_table_lineweight(7), 1.70, abs_tol=1e-6)
148 assert math.isclose(styles.get_table_lineweight(index), 7.77, abs_tol=1e-6)
216 assert math.isclose(stb.get_lineweight('mozman5'), 0.70, abs_tol=1e-6)
231 assert math.isclose(stb.get_table_lineweight(7), 1.70, abs_tol=1e-6)
236 assert math.isclose(stb.get_table_lineweight(index), 7.77, abs_tol=1e-6)
283 assert math.isclose(default_lw, ctb_lw, abs_tol=1e-6)

12345678910>>...38