Home
last modified time | relevance | path

Searched refs:atol (Results 1 – 25 of 2501) sorted by relevance

12345678910>>...101

/dports/science/py-cirq-aqt/Cirq-0.12.0/cirq-core/cirq/linalg/
H A Dtolerance_test.py20 assert all_near_zero(0, atol=atol)
21 assert all_near_zero(4.5, atol=atol)
22 assert not all_near_zero(5.5, atol=atol)
30 assert all_near_zero_mod(0, 100, atol=atol)
50 assert near_zero(0, atol=atol)
51 assert near_zero(4.5, atol=atol)
52 assert not near_zero(5.5, atol=atol)
57 assert near_zero_mod(0, 100, atol=atol)
58 assert near_zero_mod(4.5, 100, atol=atol)
61 assert near_zero_mod(100, 100, atol=atol)
[all …]
H A Dpredicates_test.py49 atol = 0.5
88 atol = 0.5
131 atol = 0.5
171 atol = 0.5
213 atol = 0.5
258 atol = 0.5
284 atol = 0.25
332 atol = 0.25
370 atol = 0.5
376 assert matrix_commutes(x, x + z * 0.1, atol=atol)
[all …]
H A Dpredicates.py38 return tolerance.all_near_zero(matrix, atol=atol)
55 matrix, np.conj(matrix.T), rtol=rtol, atol=atol
76 and np.allclose(matrix.dot(matrix.T), np.eye(matrix.shape[0]), rtol=rtol, atol=atol)
94 return is_orthogonal(matrix, rtol=rtol, atol=atol) and (
113 matrix.dot(np.conj(matrix.T)), np.eye(matrix.shape[0]), rtol=rtol, atol=atol
131 return is_unitary(matrix, rtol=rtol, atol=atol) and (
149 return matrix_commutes(matrix, matrix.T.conj(), rtol=rtol, atol=atol)
164 return np.allclose(sum_ndarray, np.eye(*sum_ndarray.shape), rtol=rtol, atol=atol)
188 and np.allclose(m1.dot(m2), m2.dot(m1), rtol=rtol, atol=atol)
197 atol: float = 1.0e-8,
[all …]
/dports/science/py-cirq-pasqal/Cirq-0.13.1/cirq-core/cirq/linalg/
H A Dtolerance_test.py20 assert all_near_zero(0, atol=atol)
21 assert all_near_zero(4.5, atol=atol)
22 assert not all_near_zero(5.5, atol=atol)
30 assert all_near_zero_mod(0, 100, atol=atol)
50 assert near_zero(0, atol=atol)
51 assert near_zero(4.5, atol=atol)
52 assert not near_zero(5.5, atol=atol)
57 assert near_zero_mod(0, 100, atol=atol)
58 assert near_zero_mod(4.5, 100, atol=atol)
61 assert near_zero_mod(100, 100, atol=atol)
[all …]
H A Dpredicates_test.py49 atol = 0.5
88 atol = 0.5
131 atol = 0.5
171 atol = 0.5
213 atol = 0.5
258 atol = 0.5
284 atol = 0.25
332 atol = 0.25
370 atol = 0.5
376 assert matrix_commutes(x, x + z * 0.1, atol=atol)
[all …]
/dports/science/py-cirq-google/Cirq-0.13.0/cirq-core/cirq/linalg/
H A Dtolerance_test.py20 assert all_near_zero(0, atol=atol)
21 assert all_near_zero(4.5, atol=atol)
22 assert not all_near_zero(5.5, atol=atol)
30 assert all_near_zero_mod(0, 100, atol=atol)
50 assert near_zero(0, atol=atol)
51 assert near_zero(4.5, atol=atol)
52 assert not near_zero(5.5, atol=atol)
57 assert near_zero_mod(0, 100, atol=atol)
58 assert near_zero_mod(4.5, 100, atol=atol)
61 assert near_zero_mod(100, 100, atol=atol)
[all …]
H A Dpredicates_test.py49 atol = 0.5
88 atol = 0.5
131 atol = 0.5
171 atol = 0.5
213 atol = 0.5
258 atol = 0.5
284 atol = 0.25
332 atol = 0.25
370 atol = 0.5
376 assert matrix_commutes(x, x + z * 0.1, atol=atol)
[all …]
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-core/cirq/linalg/
H A Dtolerance_test.py20 assert all_near_zero(0, atol=atol)
21 assert all_near_zero(4.5, atol=atol)
22 assert not all_near_zero(5.5, atol=atol)
30 assert all_near_zero_mod(0, 100, atol=atol)
50 assert near_zero(0, atol=atol)
51 assert near_zero(4.5, atol=atol)
52 assert not near_zero(5.5, atol=atol)
57 assert near_zero_mod(0, 100, atol=atol)
58 assert near_zero_mod(4.5, 100, atol=atol)
61 assert near_zero_mod(100, 100, atol=atol)
[all …]
H A Dpredicates_test.py49 atol = 0.5
88 atol = 0.5
131 atol = 0.5
171 atol = 0.5
213 atol = 0.5
258 atol = 0.5
284 atol = 0.25
332 atol = 0.25
370 atol = 0.5
376 assert matrix_commutes(x, x + z * 0.1, atol=atol)
[all …]
/dports/science/py-cirq-core/Cirq-0.13.1/cirq-core/cirq/linalg/
H A Dtolerance_test.py20 assert all_near_zero(0, atol=atol)
21 assert all_near_zero(4.5, atol=atol)
22 assert not all_near_zero(5.5, atol=atol)
30 assert all_near_zero_mod(0, 100, atol=atol)
50 assert near_zero(0, atol=atol)
51 assert near_zero(4.5, atol=atol)
52 assert not near_zero(5.5, atol=atol)
57 assert near_zero_mod(0, 100, atol=atol)
58 assert near_zero_mod(4.5, 100, atol=atol)
61 assert near_zero_mod(100, 100, atol=atol)
[all …]
H A Dpredicates_test.py49 atol = 0.5
88 atol = 0.5
131 atol = 0.5
171 atol = 0.5
213 atol = 0.5
258 atol = 0.5
284 atol = 0.25
332 atol = 0.25
370 atol = 0.5
376 assert matrix_commutes(x, x + z * 0.1, atol=atol)
[all …]
/dports/mail/postfix-policyd-sf/policyd-1.82/
H A Dthrottle_host.c47 if(atol(triplet_array[fd][3]) >= atol(mysqlchar_array[fd][7])) in throttle_host()
72 atol(mysqlchar_array[fd][5]), in throttle_host()
73 atol(mysqlchar_array[fd][9]), in throttle_host()
74 atol(mysqlchar_array[fd][7]), in throttle_host()
84 if(atol(triplet_array[fd][3]) >= atol(mysqlchar_array[fd][7])) in throttle_host()
112 if(timenow > (unsigned int)(atol(mysqlchar_array[fd][6])+atol(mysqlchar_array[fd][3]))) in throttle_host()
154 if(atol(mysqlchar_array[fd][2]) >= atol(mysqlchar_array[fd][1]) || /* count */ in throttle_host()
155 atol(mysqlchar_array[fd][4]) >= atol(mysqlchar_array[fd][5]) || /* quota */ in throttle_host()
156 atol(mysqlchar_array[fd][10]) >= atol(mysqlchar_array[fd][9])) /* rcpt max */ in throttle_host()
247 atol(mysqlchar_array[fd][4])+atol(triplet_array[fd][3]), /* quota_cur */ in throttle_host()
[all …]
H A Dthrottle_from.c47 if(atol(triplet_array[fd][3]) >= atol(mysqlchar_array[fd][7])) in throttle_from()
72 atol(mysqlchar_array[fd][5]), in throttle_from()
73 atol(mysqlchar_array[fd][9]), in throttle_from()
74 atol(mysqlchar_array[fd][7]), in throttle_from()
84 if(atol(triplet_array[fd][3]) >= atol(mysqlchar_array[fd][7])) in throttle_from()
112 if(timenow > (unsigned int)(atol(mysqlchar_array[fd][6])+atol(mysqlchar_array[fd][3]))) in throttle_from()
154 if(atol(mysqlchar_array[fd][2]) >= atol(mysqlchar_array[fd][1]) || /* count */ in throttle_from()
155 atol(mysqlchar_array[fd][4]) >= atol(mysqlchar_array[fd][5]) || /* quota */ in throttle_from()
156 atol(mysqlchar_array[fd][10]) >= atol(mysqlchar_array[fd][9])) /* rcpt max */ in throttle_from()
248 atol(mysqlchar_array[fd][4])+atol(triplet_array[fd][3]), /* quota_cur */ in throttle_from()
[all …]
H A Dthrottle_sasl.c47 if(atol(triplet_array[fd][3]) >= atol(mysqlchar_array[fd][7])) in throttle_sasl()
73 atol(mysqlchar_array[fd][5]), in throttle_sasl()
74 atol(mysqlchar_array[fd][9]), in throttle_sasl()
75 atol(mysqlchar_array[fd][7]), in throttle_sasl()
85 if(atol(triplet_array[fd][3]) >= atol(mysqlchar_array[fd][7])) in throttle_sasl()
114 if(timenow > (unsigned int)(atol(mysqlchar_array[fd][6])+atol(mysqlchar_array[fd][3]))) in throttle_sasl()
157 if(atol(mysqlchar_array[fd][2]) >= atol(mysqlchar_array[fd][1]) || /* count */ in throttle_sasl()
158 atol(mysqlchar_array[fd][4]) >= atol(mysqlchar_array[fd][5]) || /* quota */ in throttle_sasl()
159 atol(mysqlchar_array[fd][10]) >= atol(mysqlchar_array[fd][9])) /* rcpt max */ in throttle_sasl()
209 atol(mysqlchar_array[fd][4])+atol(triplet_array[fd][3]), /* quota_cur */ in throttle_sasl()
[all …]
/dports/science/py-cirq-aqt/Cirq-0.12.0/cirq-core/cirq/protocols/
H A Dapproximate_equality_protocol_test.py25 assert not cirq.approx_eq(1, 2, atol=1e-01)
28 assert cirq.approx_eq(0.0, 1e-10, atol=1e-09)
32 assert cirq.approx_eq('ab', 'ab', atol=1e-3)
36 assert not cirq.approx_eq('1', 1, atol=1e-3)
146 assert cirq.approx_eq([], [], atol=0.0)
155 atol=0.0,
174 cirq.approx_eq(t, 0.0, atol=0.005)
210 def _approx_eq_(self, other, atol): argument
213 return cirq.approx_eq(self.val, other.val, atol=atol)
220 def _approx_eq_(self, other, atol): argument
[all …]
H A Dequal_up_to_global_phase_protocol_test.py19 assert cirq.equal_up_to_global_phase(1.0 + 1j, 1.0 + 1j, atol=1e-9)
20 assert not cirq.equal_up_to_global_phase(2.0, 1.0 + 1j, atol=1e-9)
26 assert cirq.equal_up_to_global_phase(1j, 1 + 1e-10, atol=1e-9)
29 assert cirq.equal_up_to_global_phase(1.0 + 0.1j, 1.0, atol=0.01)
37 assert cirq.equal_up_to_global_phase([], [], atol=1e-9)
38 assert cirq.equal_up_to_global_phase([[]], [[]], atol=1e-9)
83 assert not cirq.equal_up_to_global_phase([], [[]], atol=0.0)
92 def _equal_up_to_global_phase_(self, other, atol): argument
95 return cirq.equal_up_to_global_phase(self.val[0], other.val[0], atol=atol)
104 def _equal_up_to_global_phase_(self, other, atol): argument
[all …]
/dports/science/py-cirq-core/Cirq-0.13.1/cirq-core/cirq/protocols/
H A Dapproximate_equality_protocol_test.py25 assert not cirq.approx_eq(1, 2, atol=1e-01)
28 assert cirq.approx_eq(0.0, 1e-10, atol=1e-09)
32 assert cirq.approx_eq('ab', 'ab', atol=1e-3)
36 assert not cirq.approx_eq('1', 1, atol=1e-3)
146 assert cirq.approx_eq([], [], atol=0.0)
155 atol=0.0,
174 cirq.approx_eq(t, 0.0, atol=0.005)
210 def _approx_eq_(self, other, atol): argument
213 return cirq.approx_eq(self.val, other.val, atol=atol)
220 def _approx_eq_(self, other, atol): argument
[all …]
H A Dequal_up_to_global_phase_protocol_test.py19 assert cirq.equal_up_to_global_phase(1.0 + 1j, 1.0 + 1j, atol=1e-9)
20 assert not cirq.equal_up_to_global_phase(2.0, 1.0 + 1j, atol=1e-9)
26 assert cirq.equal_up_to_global_phase(1j, 1 + 1e-10, atol=1e-9)
29 assert cirq.equal_up_to_global_phase(1.0 + 0.1j, 1.0, atol=0.01)
37 assert cirq.equal_up_to_global_phase([], [], atol=1e-9)
38 assert cirq.equal_up_to_global_phase([[]], [[]], atol=1e-9)
83 assert not cirq.equal_up_to_global_phase([], [[]], atol=0.0)
92 def _equal_up_to_global_phase_(self, other, atol): argument
95 return cirq.equal_up_to_global_phase(self.val[0], other.val[0], atol=atol)
104 def _equal_up_to_global_phase_(self, other, atol): argument
[all …]
/dports/science/py-cirq-pasqal/Cirq-0.13.1/cirq-core/cirq/protocols/
H A Dapproximate_equality_protocol_test.py25 assert not cirq.approx_eq(1, 2, atol=1e-01)
28 assert cirq.approx_eq(0.0, 1e-10, atol=1e-09)
32 assert cirq.approx_eq('ab', 'ab', atol=1e-3)
36 assert not cirq.approx_eq('1', 1, atol=1e-3)
146 assert cirq.approx_eq([], [], atol=0.0)
155 atol=0.0,
174 cirq.approx_eq(t, 0.0, atol=0.005)
210 def _approx_eq_(self, other, atol): argument
213 return cirq.approx_eq(self.val, other.val, atol=atol)
220 def _approx_eq_(self, other, atol): argument
[all …]
H A Dequal_up_to_global_phase_protocol_test.py19 assert cirq.equal_up_to_global_phase(1.0 + 1j, 1.0 + 1j, atol=1e-9)
20 assert not cirq.equal_up_to_global_phase(2.0, 1.0 + 1j, atol=1e-9)
26 assert cirq.equal_up_to_global_phase(1j, 1 + 1e-10, atol=1e-9)
29 assert cirq.equal_up_to_global_phase(1.0 + 0.1j, 1.0, atol=0.01)
37 assert cirq.equal_up_to_global_phase([], [], atol=1e-9)
38 assert cirq.equal_up_to_global_phase([[]], [[]], atol=1e-9)
83 assert not cirq.equal_up_to_global_phase([], [[]], atol=0.0)
92 def _equal_up_to_global_phase_(self, other, atol): argument
95 return cirq.equal_up_to_global_phase(self.val[0], other.val[0], atol=atol)
104 def _equal_up_to_global_phase_(self, other, atol): argument
[all …]
/dports/science/py-cirq-google/Cirq-0.13.0/cirq-core/cirq/protocols/
H A Dapproximate_equality_protocol_test.py25 assert not cirq.approx_eq(1, 2, atol=1e-01)
28 assert cirq.approx_eq(0.0, 1e-10, atol=1e-09)
32 assert cirq.approx_eq('ab', 'ab', atol=1e-3)
36 assert not cirq.approx_eq('1', 1, atol=1e-3)
146 assert cirq.approx_eq([], [], atol=0.0)
155 atol=0.0,
174 cirq.approx_eq(t, 0.0, atol=0.005)
210 def _approx_eq_(self, other, atol): argument
213 return cirq.approx_eq(self.val, other.val, atol=atol)
220 def _approx_eq_(self, other, atol): argument
[all …]
H A Dequal_up_to_global_phase_protocol_test.py19 assert cirq.equal_up_to_global_phase(1.0 + 1j, 1.0 + 1j, atol=1e-9)
20 assert not cirq.equal_up_to_global_phase(2.0, 1.0 + 1j, atol=1e-9)
26 assert cirq.equal_up_to_global_phase(1j, 1 + 1e-10, atol=1e-9)
29 assert cirq.equal_up_to_global_phase(1.0 + 0.1j, 1.0, atol=0.01)
37 assert cirq.equal_up_to_global_phase([], [], atol=1e-9)
38 assert cirq.equal_up_to_global_phase([[]], [[]], atol=1e-9)
83 assert not cirq.equal_up_to_global_phase([], [[]], atol=0.0)
92 def _equal_up_to_global_phase_(self, other, atol): argument
95 return cirq.equal_up_to_global_phase(self.val[0], other.val[0], atol=atol)
104 def _equal_up_to_global_phase_(self, other, atol): argument
[all …]
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-core/cirq/protocols/
H A Dapproximate_equality_protocol_test.py25 assert not cirq.approx_eq(1, 2, atol=1e-01)
28 assert cirq.approx_eq(0.0, 1e-10, atol=1e-09)
32 assert cirq.approx_eq('ab', 'ab', atol=1e-3)
36 assert not cirq.approx_eq('1', 1, atol=1e-3)
146 assert cirq.approx_eq([], [], atol=0.0)
155 atol=0.0,
174 cirq.approx_eq(t, 0.0, atol=0.005)
210 def _approx_eq_(self, other, atol): argument
213 return cirq.approx_eq(self.val, other.val, atol=atol)
220 def _approx_eq_(self, other, atol): argument
[all …]
H A Dequal_up_to_global_phase_protocol_test.py19 assert cirq.equal_up_to_global_phase(1.0 + 1j, 1.0 + 1j, atol=1e-9)
20 assert not cirq.equal_up_to_global_phase(2.0, 1.0 + 1j, atol=1e-9)
26 assert cirq.equal_up_to_global_phase(1j, 1 + 1e-10, atol=1e-9)
29 assert cirq.equal_up_to_global_phase(1.0 + 0.1j, 1.0, atol=0.01)
37 assert cirq.equal_up_to_global_phase([], [], atol=1e-9)
38 assert cirq.equal_up_to_global_phase([[]], [[]], atol=1e-9)
83 assert not cirq.equal_up_to_global_phase([], [[]], atol=0.0)
92 def _equal_up_to_global_phase_(self, other, atol): argument
95 return cirq.equal_up_to_global_phase(self.val[0], other.val[0], atol=atol)
104 def _equal_up_to_global_phase_(self, other, atol): argument
[all …]
/dports/science/py-ase/ase-3.22.0/ase/test/
H A Dtest_calculator_equal.py14 def test_single_value(a, b, rtol, atol): argument
15 assert equal(a, b, rtol=rtol, atol=atol)
24 assert equal(a, b, rtol=rtol, atol=atol)
26 {'size': b, 'gamma': True}, rtol=rtol, atol=atol)
28 {'size': b, 'gamma': False}, rtol=rtol, atol=atol)
29 assert not equal({'size': a}, b, rtol=rtol, atol=atol)
30 assert not equal(a, {'size': b}, rtol=rtol, atol=atol)
40 assert equal(a, b, rtol=rtol, atol=atol)
42 {'size': b, 'gamma': True}, rtol=rtol, atol=atol)
51 assert not equal(a, b, rtol=rtol, atol=atol)
[all …]

12345678910>>...101