Home
last modified time | relevance | path

Searched refs:isnan (Results 1 – 25 of 491) sorted by relevance

12345678910>>...20

/external/libcxx/test/std/numerics/complex.number/complex.transcendentals/
Dcosh.pass.cpp49 assert(std::isnan(r.real())); in test_edges()
52 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges()
54 assert(std::isnan(r.real())); in test_edges()
59 assert(std::isnan(r.real())); in test_edges()
60 assert(std::isnan(r.imag())); in test_edges()
62 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
64 assert(std::isnan(r.real())); in test_edges()
65 assert(std::isnan(r.imag())); in test_edges()
84 assert(std::isnan(r.imag())); in test_edges()
86 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
[all …]
Dsinh.pass.cpp51 assert(std::isnan(r.imag())); in test_edges()
55 assert(std::isnan(r.real())); in test_edges()
56 assert(std::isnan(r.imag())); in test_edges()
58 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges()
61 assert(std::isnan(r.imag())); in test_edges()
63 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
65 assert(std::isnan(r.real())); in test_edges()
66 assert(std::isnan(r.imag())); in test_edges()
85 assert(std::isnan(r.imag())); in test_edges()
87 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
[all …]
Dexp.pass.cpp49 assert(std::isnan(r.real())); in test_edges()
50 assert(std::isnan(r.imag())); in test_edges()
52 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
54 assert(std::isnan(r.real())); in test_edges()
55 assert(std::isnan(r.imag())); in test_edges()
72 assert(std::isnan(r.imag())); in test_edges()
74 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isnan(testcases[i].ima… in test_edges()
79 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isnan(testcases[i].ima… in test_edges()
82 assert(std::isnan(r.imag())); in test_edges()
84 else if (std::isnan(testcases[i].real()) && testcases[i].imag() == 0) in test_edges()
[all …]
Dtanh.pass.cpp50 assert(std::isnan(r.real())); in test_edges()
51 assert(std::isnan(r.imag())); in test_edges()
53 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
55 assert(std::isnan(r.real())); in test_edges()
56 assert(std::isnan(r.imag())); in test_edges()
69 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
74 else if (std::isnan(testcases[i].real()) && testcases[i].imag() == 0) in test_edges()
76 assert(std::isnan(r.real())); in test_edges()
80 else if (std::isnan(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
82 assert(std::isnan(r.real())); in test_edges()
[all …]
Dasin.pass.cpp54 else if ( testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges()
58 assert(std::isnan(r.imag())); in test_edges()
60 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
62 assert(std::isnan(r.real())); in test_edges()
63 assert(std::isnan(r.imag())); in test_edges()
83 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
85 assert(std::isnan(r.real())); in test_edges()
89 else if (std::isnan(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
91 assert(std::isnan(r.real())); in test_edges()
92 assert(std::isnan(r.imag())); in test_edges()
[all …]
Dasinh.pass.cpp65 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
67 assert(std::isnan(r.real())); in test_edges()
68 assert(std::isnan(r.imag())); in test_edges()
86 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
90 assert(std::isnan(r.imag())); in test_edges()
92 else if (std::isnan(testcases[i].real()) && testcases[i].imag() == 0) in test_edges()
94 assert(std::isnan(r.real())); in test_edges()
98 else if (std::isnan(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
100 assert(std::isnan(r.real())); in test_edges()
101 assert(std::isnan(r.imag())); in test_edges()
[all …]
Datanh.pass.cpp47 else if ( testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges()
51 assert(std::isnan(r.imag())); in test_edges()
69 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
71 assert(std::isnan(r.real())); in test_edges()
72 assert(std::isnan(r.imag())); in test_edges()
92 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
96 assert(std::isnan(r.imag())); in test_edges()
98 else if (std::isnan(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
100 assert(std::isnan(r.real())); in test_edges()
101 assert(std::isnan(r.imag())); in test_edges()
[all …]
Dacos.pass.cpp48 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges()
51 assert(std::isnan(r.imag())); in test_edges()
59 …else if (std::isfinite(testcases[i].real()) && testcases[i].real() != 0 && std::isnan(testcases[i]… in test_edges()
61 assert(std::isnan(r.real())); in test_edges()
62 assert(std::isnan(r.imag())); in test_edges()
89 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
91 assert(std::isnan(r.real())); in test_edges()
94 else if (std::isnan(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
96 assert(std::isnan(r.real())); in test_edges()
97 assert(std::isnan(r.imag())); in test_edges()
[all …]
Dacosh.pass.cpp75 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
77 assert(std::isnan(r.real())); in test_edges()
78 assert(std::isnan(r.imag())); in test_edges()
114 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
118 assert(std::isnan(r.imag())); in test_edges()
120 else if (std::isnan(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
122 assert(std::isnan(r.real())); in test_edges()
123 assert(std::isnan(r.imag())); in test_edges()
125 else if (std::isnan(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
129 assert(std::isnan(r.imag())); in test_edges()
[all …]
Dsqrt.pass.cpp55 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
57 assert(std::isnan(r.real())); in test_edges()
58 assert(std::isnan(r.imag())); in test_edges()
74 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isnan(testcases[i].ima… in test_edges()
76 assert(std::isnan(r.real())); in test_edges()
79 …else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && std::isnan(testcases[i].ima… in test_edges()
83 assert(std::isnan(r.imag())); in test_edges()
85 …else if (std::isnan(testcases[i].real()) && (std::isfinite(testcases[i].imag()) || std::isnan(test… in test_edges()
87 assert(std::isnan(r.real())); in test_edges()
88 assert(std::isnan(r.imag())); in test_edges()
Dcos.pass.cpp43 if (std::isnan(real(r))) in test_edges()
44 assert(std::isnan(real(z))); in test_edges()
50 if (std::isnan(imag(r))) in test_edges()
51 assert(std::isnan(imag(z))); in test_edges()
/external/python/cpython2/Lib/test/decimaltestdata/
Dextra.decTest879 bool0630 isnan 0E-2000 -> 0
880 bool0631 isnan -0E-2000 -> 0
881 bool0632 isnan 0E-1008 -> 0
882 bool0633 isnan -0E-1008 -> 0
883 bool0634 isnan 0E-1007 -> 0
884 bool0635 isnan -0E-1007 -> 0
885 bool0636 isnan 0E-1006 -> 0
886 bool0637 isnan -0E-1006 -> 0
887 bool0638 isnan 0E-1000 -> 0
888 bool0639 isnan -0E-1000 -> 0
[all …]
/external/python/cpython3/Lib/test/decimaltestdata/
Dextra.decTest879 bool0630 isnan 0E-2000 -> 0
880 bool0631 isnan -0E-2000 -> 0
881 bool0632 isnan 0E-1008 -> 0
882 bool0633 isnan -0E-1008 -> 0
883 bool0634 isnan 0E-1007 -> 0
884 bool0635 isnan -0E-1007 -> 0
885 bool0636 isnan 0E-1006 -> 0
886 bool0637 isnan -0E-1006 -> 0
887 bool0638 isnan 0E-1000 -> 0
888 bool0639 isnan -0E-1000 -> 0
[all …]
/external/catch2/include/internal/
Dcatch_polyfills.cpp15 bool isnan(float f) { in isnan() function
16 return std::isnan(f); in isnan()
18 bool isnan(double d) { in isnan() function
19 return std::isnan(d); in isnan()
23 bool isnan(float f) {
26 bool isnan(double d) {
/external/pdfium/core/fxcrt/
Dfx_extension.h117 return (std::isnan(lhs) && std::isnan(rhs)) || in FXSYS_SafeEQ()
118 (!std::isnan(lhs) && !std::isnan(rhs) && lhs == rhs); in FXSYS_SafeEQ()
123 if (std::isnan(lhs) && std::isnan(rhs)) in FXSYS_SafeLT()
125 if (std::isnan(lhs) || std::isnan(rhs)) in FXSYS_SafeLT()
126 return std::isnan(lhs) < std::isnan(rhs); in FXSYS_SafeLT()
/external/python/cpython2/Lib/test/
Dtest_math.py153 self.assertTrue(math.isnan(math.acos(NAN)))
163 self.assertTrue(math.isnan(math.acosh(NAN)))
172 self.assertTrue(math.isnan(math.asin(NAN)))
181 self.assertTrue(math.isnan(math.asinh(NAN)))
190 self.assertTrue(math.isnan(math.atan(NAN)))
201 self.assertTrue(math.isnan(math.atanh(NAN)))
218 self.assertTrue(math.isnan(math.atan2(0., NAN)))
226 self.assertTrue(math.isnan(math.atan2(-0., NAN)))
234 self.assertTrue(math.isnan(math.atan2(INF, NAN)))
242 self.assertTrue(math.isnan(math.atan2(NINF, NAN)))
[all …]
Dtest_cmath.py76 if math.isnan(a):
77 if math.isnan(b):
436 self.assertTrue(math.isnan(phase(z)))
449 self.assertTrue(math.isnan(abs(complex(NAN, -2.3))))
450 self.assertTrue(math.isnan(abs(complex(NAN, -0.0))))
451 self.assertTrue(math.isnan(abs(complex(NAN, 0.0))))
452 self.assertTrue(math.isnan(abs(complex(NAN, 2.3))))
455 self.assertTrue(math.isnan(abs(complex(-2.3, NAN))))
456 self.assertTrue(math.isnan(abs(complex(-0.0, NAN))))
457 self.assertTrue(math.isnan(abs(complex(0.0, NAN))))
[all …]
/external/eigen/test/
Dfastmath.cpp24 template<typename T> bool (isnan)(T x) { return _isnan(x); }
39 …<< m(3) << ") = "; check((std::isnan)(m(3)),true); std::cout << " ; numext::isnan = "; … in check_inf_nan()
48 VERIFY( (numext::isnan)(m(3)) ); in check_inf_nan()
58 …<< m(4) << ") = "; check((std::isnan)(m(4)),false); std::cout << " ; numext::isnan = "; … in check_inf_nan()
67 VERIFY( !(numext::isnan)(m(4)) ); in check_inf_nan()
76 …<< m(3) << ") = "; check((std::isnan)(m(3)),false); std::cout << " ; numext::isnan = ";… in check_inf_nan()
85 VERIFY( !(numext::isnan)(m(3)) ); in check_inf_nan()
Dstable_norm.cpp43 if(NumTraits<Scalar>::IsComplex && (numext::isnan)(inf*RealScalar(1)) ) in stable_norm()
118 VERIFY(!(numext::isfinite)(v.squaredNorm())); VERIFY((numext::isnan)(v.squaredNorm())); in stable_norm()
119 VERIFY(!(numext::isfinite)(v.norm())); VERIFY((numext::isnan)(v.norm())); in stable_norm()
120 VERIFY(!(numext::isfinite)(v.stableNorm())); VERIFY((numext::isnan)(v.stableNorm())); in stable_norm()
121 VERIFY(!(numext::isfinite)(v.blueNorm())); VERIFY((numext::isnan)(v.blueNorm())); in stable_norm()
122 VERIFY(!(numext::isfinite)(v.hypotNorm())); VERIFY((numext::isnan)(v.hypotNorm())); in stable_norm()
160 VERIFY(!(numext::isfinite)(v.squaredNorm())); VERIFY((numext::isnan)(v.squaredNorm())); in stable_norm()
161 VERIFY(!(numext::isfinite)(v.norm())); VERIFY((numext::isnan)(v.norm())); in stable_norm()
162 VERIFY(!(numext::isfinite)(v.stableNorm())); VERIFY((numext::isnan)(v.stableNorm())); in stable_norm()
163 VERIFY(!(numext::isfinite)(v.blueNorm())); VERIFY((numext::isnan)(v.blueNorm())); in stable_norm()
[all …]
/external/python/cpython3/Lib/test/
Dtest_cmath.py78 if math.isnan(x) or math.isnan(y):
79 if math.isnan(x) and math.isnan(y):
113 if math.isnan(a):
114 if math.isnan(b):
165 self.assertTrue(math.isnan(cmath.nan.real))
168 self.assertTrue(math.isnan(cmath.nanj.imag))
503 self.assertTrue(math.isnan(phase(z)))
516 self.assertTrue(math.isnan(abs(complex(NAN, -2.3))))
517 self.assertTrue(math.isnan(abs(complex(NAN, -0.0))))
518 self.assertTrue(math.isnan(abs(complex(NAN, 0.0))))
[all …]
Dtest_math.py65 if math.isnan(x) or math.isinf(x):
224 if math.isnan(expected) and math.isnan(got):
284 self.assertTrue(math.isnan(math.acos(NAN)))
294 self.assertTrue(math.isnan(math.acosh(NAN)))
305 self.assertTrue(math.isnan(math.asin(NAN)))
314 self.assertTrue(math.isnan(math.asinh(NAN)))
323 self.assertTrue(math.isnan(math.atan(NAN)))
334 self.assertTrue(math.isnan(math.atanh(NAN)))
351 self.assertTrue(math.isnan(math.atan2(0., NAN)))
359 self.assertTrue(math.isnan(math.atan2(-0., NAN)))
[all …]
/external/OpenCL-CTS/test_conformance/relationals/
Dtest_comparisons_double.cpp270 if( isnan( valueA ) || isnan( valueB ) ) in isequal_verify_fn_double()
283 if( isnan( valueA ) || isnan( valueB ) ) in isnotequal_verify_fn_double()
296 if( isnan( valueA ) || isnan( valueB ) ) in isgreater_verify_fn_double()
309 if( isnan( valueA ) || isnan( valueB ) ) in isgreaterequal_verify_fn_double()
322 if( isnan( valueA ) || isnan( valueB ) ) in isless_verify_fn_double()
335 if( isnan( valueA ) || isnan( valueB ) ) in islessequal_verify_fn_double()
348 if( isnan( valueA ) || isnan( valueB ) ) in islessgreater_verify_fn_double()
/external/libcxx/test/libcxx/numerics/complex.number/
D__sqr.pass.cpp56 assert(std::isnan(nan1.real())); in test()
57 assert(std::isnan(nan1.imag())); in test()
60 assert(std::isnan(nan2.real())); in test()
61 assert(std::isnan(nan2.imag())); in test()
64 assert(std::isnan(nan3.real())); in test()
65 assert(std::isnan(nan3.imag())); in test()
/external/v8/src/utils/
Dboxed-float.h28 DCHECK(!std::isnan(value)); in Float32()
38 return std::isnan(get_scalar()); in is_nan()
68 DCHECK(!std::isnan(value)); in Float64()
77 return std::isnan(get_scalar()); in is_nan()
/external/libxml2/include/
Dwin32config.h52 #ifndef isnan
53 #define isnan(d) (_isnan(d)) macro
73 #ifndef isnan
74 static int isnan (double d) { in isnan() function

12345678910>>...20