Home
last modified time | relevance | path

Searched refs:inf (Results 1 – 25 of 425) sorted by relevance

12345678910>>...17

/external/python/cpython2/Lib/test/
Dcmath_testcases.txt34 -- given as inf, then both -inf and inf should be accepted as
196 acos1006 acos -2.3 inf -> 1.5707963267948966 -inf
197 acos1007 acos -0.0 inf -> 1.5707963267948966 -inf
198 acos1008 acos 0.0 inf -> 1.5707963267948966 -inf
199 acos1009 acos 2.3 inf -> 1.5707963267948966 -inf
202 acos1012 acos -inf 2.3 -> 3.1415926535897931 -inf
203 acos1013 acos -inf 0.0 -> 3.1415926535897931 -inf
204 acos1014 acos inf 2.3 -> 0.0 -inf
205 acos1015 acos inf 0.0 -> 0.0 -inf
206 acos1016 acos -inf inf -> 2.3561944901923448 -inf
[all …]
Dmath_testcases.txt31 -- unspecified; e.g., if the result is given as inf,
32 -- then both -inf and inf should be accepted as correct.
57 erf0002 erf inf -> 1.0
58 erf0003 erf -inf -> -1.0
113 erfc0002 erfc inf -> 0.0
114 erfc0003 erfc -inf -> 2.0
174 lgam0000 lgamma 0.0 -> inf divide-by-zero
175 lgam0001 lgamma -0.0 -> inf divide-by-zero
176 lgam0002 lgamma inf -> inf
177 lgam0003 lgamma -inf -> inf
[all …]
/external/python/cpython3/Lib/test/
Dcmath_testcases.txt34 -- given as inf, then both -inf and inf should be accepted as
202 acos1006 acos -2.3 inf -> 1.5707963267948966 -inf
203 acos1007 acos -0.0 inf -> 1.5707963267948966 -inf
204 acos1008 acos 0.0 inf -> 1.5707963267948966 -inf
205 acos1009 acos 2.3 inf -> 1.5707963267948966 -inf
208 acos1012 acos -inf 2.3 -> 3.1415926535897931 -inf
209 acos1013 acos -inf 0.0 -> 3.1415926535897931 -inf
210 acos1014 acos inf 2.3 -> 0.0 -inf
211 acos1015 acos inf 0.0 -> 0.0 -inf
212 acos1016 acos -inf inf -> 2.3561944901923448 -inf
[all …]
Dmath_testcases.txt31 -- unspecified; e.g., if the result is given as inf,
32 -- then both -inf and inf should be accepted as correct.
57 erf0002 erf inf -> 1.0
58 erf0003 erf -inf -> -1.0
113 erfc0002 erfc inf -> 0.0
114 erfc0003 erfc -inf -> 2.0
174 lgam0000 lgamma 0.0 -> inf divide-by-zero
175 lgam0001 lgamma -0.0 -> inf divide-by-zero
176 lgam0002 lgamma inf -> inf
177 lgam0003 lgamma -inf -> inf
[all …]
Dtest_cmath.py160 self.assertEqual(cmath.inf.real, math.inf)
161 self.assertEqual(cmath.inf.imag, 0.0)
163 self.assertEqual(cmath.infj.imag, math.inf)
171 self.assertEqual(repr(cmath.inf), "inf")
432 inf = float('inf')
433 check(complex(inf, 0), (inf, 0.))
434 check(complex(-inf, 0), (inf, pi))
435 check(complex(3, inf), (inf, pi / 2))
436 check(complex(5, -inf), (inf, -pi / 2))
437 check(complex(inf, inf), (inf, pi / 4))
[all …]
/external/zlib/src/examples/
Dfitblk.c96 local int recompress(z_streamp inf, z_streamp def) in recompress() argument
104 inf->avail_out = RAWLEN; in recompress()
105 inf->next_out = raw; in recompress()
106 ret = inflate(inf, Z_NO_FLUSH); in recompress()
113 def->avail_in = RAWLEN - inf->avail_out; in recompress()
115 if (inf->avail_out != 0) in recompress()
134 z_stream def, inf; /* zlib deflate and inflate states */ in main() local
180 inf.zalloc = Z_NULL; in main()
181 inf.zfree = Z_NULL; in main()
182 inf.opaque = Z_NULL; in main()
[all …]
/external/zlib/src/contrib/iostream3/
Dtest.cc14 gzifstream inf; in main() local
26 inf.open("test1.txt.gz"); in main()
27 while (inf.getline(buf,80,'\n')) { in main()
28 std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n"; in main()
30 inf.close(); in main()
41 inf.rdbuf()->pubsetbuf(0,0); in main()
42 inf.open("test2.txt.gz"); in main()
43 while (inf.getline(buf,80,'\n')) { in main()
44 std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n"; in main()
46 inf.close(); in main()
/external/u-boot/tools/patman/
Dtest.py219 inf = self.SetupData('good')
220 result = checkpatch.CheckPatch(inf)
227 os.remove(inf)
230 inf = self.SetupData('no-signoff')
231 result = checkpatch.CheckPatch(inf)
238 os.remove(inf)
241 inf = self.SetupData('no-license')
242 result = checkpatch.CheckPatch(inf)
249 os.remove(inf)
252 inf = self.SetupData('spaces')
[all …]
/external/tensorflow/tensorflow/contrib/sparsemax/python/kernel_tests/
Dsparsemax_loss_test.py125 [0, -np.inf, 0],
126 [0, -np.inf, -np.inf],
127 [-np.inf, -np.inf, 0],
128 [-np.inf, -np.inf, -np.inf],
130 z_pos = np.asarray([[0, np.inf, 0], [0, np.inf,
131 np.inf], [np.inf, np.inf, 0],
132 [np.inf, np.inf, np.inf]]).astype(dtype)
133 z_mix = np.asarray([[0, np.inf, 0], [0, np.inf, -np.inf],
134 [-np.inf, np.inf, 0], [-np.inf, np.inf,
135 -np.inf]]).astype(dtype)
[all …]
/external/libcxx/test/std/iterators/stream.iterators/istreambuf.iterator/istreambuf.iterator.cons/
Distream.pass.cpp23 std::istringstream inf; in main() local
24 std::istreambuf_iterator<char> i(inf); in main()
28 std::istringstream inf("a"); in main() local
29 std::istreambuf_iterator<char> i(inf); in main()
33 std::wistringstream inf; in main() local
34 std::istreambuf_iterator<wchar_t> i(inf); in main()
38 std::wistringstream inf(L"a"); in main() local
39 std::istreambuf_iterator<wchar_t> i(inf); in main()
Dstreambuf.pass.cpp27 std::istringstream inf; in main() local
28 std::istreambuf_iterator<char> i(inf.rdbuf()); in main()
32 std::istringstream inf("a"); in main() local
33 std::istreambuf_iterator<char> i(inf.rdbuf()); in main()
41 std::wistringstream inf; in main() local
42 std::istreambuf_iterator<wchar_t> i(inf.rdbuf()); in main()
46 std::wistringstream inf(L"a"); in main() local
47 std::istreambuf_iterator<wchar_t> i(inf.rdbuf()); in main()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dbuffer_comparator_test.cc85 const auto inf = std::numeric_limits<float>::infinity(); in TEST_F() local
86 EXPECT_FALSE(CompareEqualFloatBuffers({inf}, {std::nanf("")})); in TEST_F()
87 EXPECT_TRUE(CompareEqualFloatBuffers({inf}, {inf})); in TEST_F()
88 EXPECT_TRUE(CompareEqualFloatBuffers({inf}, {65504})); in TEST_F()
89 EXPECT_TRUE(CompareEqualFloatBuffers({-inf}, {-65504})); in TEST_F()
90 EXPECT_FALSE(CompareEqualFloatBuffers({inf}, {-65504})); in TEST_F()
91 EXPECT_FALSE(CompareEqualFloatBuffers({-inf}, {65504})); in TEST_F()
93 EXPECT_FALSE(CompareEqualFloatBuffers({inf}, {20})); in TEST_F()
94 EXPECT_FALSE(CompareEqualFloatBuffers({inf}, {-20})); in TEST_F()
95 EXPECT_FALSE(CompareEqualFloatBuffers({-inf}, {20})); in TEST_F()
[all …]
/external/compiler-rt/test/builtins/Unit/
Dmulsc3_test.c24 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator
32 return inf; in classify()
76 case inf: in test__mulsc3()
107 case inf: in test__mulsc3()
108 if (classify(r) != inf) in test__mulsc3()
121 case inf: in test__mulsc3()
129 if (classify(r) != inf) in test__mulsc3()
132 case inf: in test__mulsc3()
133 if (classify(r) != inf) in test__mulsc3()
141 if (classify(r) != inf) in test__mulsc3()
[all …]
Dmultc3_test.c27 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator
35 return inf; in classify()
79 case inf: in test__multc3()
106 case inf: in test__multc3()
107 if (classify(r) != inf) in test__multc3()
120 case inf: in test__multc3()
128 if (classify(r) != inf) in test__multc3()
131 case inf: in test__multc3()
132 if (classify(r) != inf) in test__multc3()
140 if (classify(r) != inf) in test__multc3()
[all …]
Dmuldc3_test.c24 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator
32 return inf; in classify()
76 case inf: in test__muldc3()
103 case inf: in test__muldc3()
104 if (classify(r) != inf) in test__muldc3()
117 case inf: in test__muldc3()
125 if (classify(r) != inf) in test__muldc3()
128 case inf: in test__muldc3()
129 if (classify(r) != inf) in test__muldc3()
137 if (classify(r) != inf) in test__muldc3()
[all …]
Dmulxc3_test.c26 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator
34 return inf; in classify()
78 case inf: in test__mulxc3()
105 case inf: in test__mulxc3()
106 if (classify(r) != inf) in test__mulxc3()
119 case inf: in test__mulxc3()
127 if (classify(r) != inf) in test__mulxc3()
130 case inf: in test__mulxc3()
131 if (classify(r) != inf) in test__mulxc3()
139 if (classify(r) != inf) in test__mulxc3()
[all …]
Ddivsc3_test.c24 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator
32 return inf; in classify()
76 case inf: in test__divsc3()
94 if (classify(r) != inf) in test__divsc3()
107 case inf: in test__divsc3()
121 case inf: in test__divsc3()
125 if (classify(r) != inf) in test__divsc3()
129 if (classify(r) != inf) in test__divsc3()
132 case inf: in test__divsc3()
157 case inf: in test__divsc3()
[all …]
Ddivdc3_test.c24 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator
32 return inf; in classify()
76 case inf: in test__divdc3()
94 if (classify(r) != inf) in test__divdc3()
107 case inf: in test__divdc3()
121 case inf: in test__divdc3()
125 if (classify(r) != inf) in test__divdc3()
129 if (classify(r) != inf) in test__divdc3()
132 case inf: in test__divdc3()
157 case inf: in test__divdc3()
[all …]
Ddivtc3_test.c25 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator
33 return inf; in classify()
78 case inf: in test__divtc3()
96 if (classify(r) != inf) in test__divtc3()
109 case inf: in test__divtc3()
123 case inf: in test__divtc3()
127 if (classify(r) != inf) in test__divtc3()
131 if (classify(r) != inf) in test__divtc3()
134 case inf: in test__divtc3()
159 case inf: in test__divtc3()
[all …]
Ddivxc3_test.c26 enum {zero, non_zero, inf, NaN, non_zero_nan}; enumerator
34 return inf; in classify()
78 case inf: in test__divxc3()
96 if (classify(r) != inf) in test__divxc3()
109 case inf: in test__divxc3()
123 case inf: in test__divxc3()
127 if (classify(r) != inf) in test__divxc3()
131 if (classify(r) != inf) in test__divxc3()
134 case inf: in test__divxc3()
159 case inf: in test__divxc3()
[all …]
/external/libcxx/test/std/numerics/complex.number/complex.ops/
Dcomplex_times_complex.pass.cpp59 case inf: in test_edges()
79 case inf: in test_edges()
80 assert(classify(r) == inf); in test_edges()
90 case inf: in test_edges()
97 assert(classify(r) == inf); in test_edges()
99 case inf: in test_edges()
100 assert(classify(r) == inf); in test_edges()
106 assert(classify(r) == inf); in test_edges()
119 case inf: in test_edges()
139 case inf: in test_edges()
[all …]
/external/ltp/testcases/network/netstress/
Dnetstress.c369 struct sock_info inf; in client_fn() local
375 inf.raddr_len = sizeof(inf.raddr); in client_fn()
376 inf.etime_cnt = 0; in client_fn()
377 inf.timeout = wait_timeout; in client_fn()
378 inf.pmtu_err_cnt = 0; in client_fn()
383 inf.fd = client_connect_send(client_msg, cln_len); in client_fn()
384 if (inf.fd == -1) { in client_fn()
389 if (client_recv(buf, srv_len, &inf)) { in client_fn()
395 if (inf.fd == -1) { in client_fn()
396 inf.fd = client_connect_send(client_msg, cln_len); in client_fn()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dcast_op_test.py151 self._compare(np.inf, np.float32, np.inf, False)
152 self._compare(np.inf, np.float64, np.inf, False)
154 self._compare(np.inf, np.int32, i4.max, False)
155 self._compare(np.inf, np.int64, i8.max, False)
161 self._compare(-np.inf, np.int32, i4.min, False)
162 self._compare(-np.inf, np.int64, i8.min, False)
164 self._compare(np.inf, np.int32, i4.min, False)
165 self._compare(np.inf, np.int64, i8.min, False)
166 self._compare(-np.inf, np.float32, -np.inf, False)
167 self._compare(-np.inf, np.float64, -np.inf, False)
[all …]
/external/tensorflow/tensorflow/compiler/xla/tests/
Dunary_op_test.cc35 T inf() { in inf() function in xla::__anon39d9aaf50111::UnaryOpTest
54 auto arg = ConstantR1<T>(&builder, {-2, 25, 0, -123, inf<T>(), -inf<T>()}); in AbsTestHelper()
57 ComputeAndCompareR1<T>(&builder, {2, 25, 0, 123, inf<T>(), inf<T>()}, {}); in AbsTestHelper()
64 &builder, {-2, 25, 0, static_cast<T>(-0.0), -123, inf<T>(), -inf<T>()}); in SignTestHelper()
85 int UnaryOpTest::inf<int>() { in inf() function in xla::__anon39d9aaf50111::UnaryOpTest
90 int64 UnaryOpTest::inf<int64>() { in inf() function in xla::__anon39d9aaf50111::UnaryOpTest
101 {0, inf<float>()}, in AbsTestHelper()
102 {-inf<float>(), 0}}); in AbsTestHelper()
106 LiteralUtil::CreateR1<float>({2, 25, 0, 0.5, inf<float>(), inf<float>()}); in AbsTestHelper()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/gzip/
DGzipCompressorInputStream.java103 private Inflater inf = new Inflater(true); field in GzipCompressorInputStream
262 inf.reset(); in init()
296 if (inf.needsInput()) { in read()
306 inf.setInput(buf, 0, bufUsed); in read()
311 ret = inf.inflate(b, off, len); in read()
322 if (inf.finished()) { in read()
330 final int skipAmount = bufUsed - inf.getRemaining(); in read()
350 if (isize != (inf.getBytesWritten() & 0xffffffffL)) { in read()
357 inf.end(); in read()
358 inf = null; in read()
[all …]

12345678910>>...17