Home
last modified time | relevance | path

Searched full:isnan (Results 1 – 25 of 4621) sorted by relevance

12345678910>>...185

/aosp_15_r20/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 …]
/aosp_15_r20/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 …]
/aosp_15_r20/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 …]
/aosp_15_r20/external/eigen/test/
H A Dfastmath.cpp24 template<typename T> bool (isnan)(T x) { return _isnan(x); }
39 …out << "std::isnan(" << m(3) << ") = "; check((std::isnan)(m(3)),true); std::cout << " ; n… in check_inf_nan()
48 if(!(std::isnan) (m(3))) g_test_level=1; VERIFY( (numext::isnan)(m(3)) ); g_test_level=0; in check_inf_nan()
50 if(!(std::isnan) (m(3))) g_test_level=1; VERIFY( m.hasNaN() ); g_test_level=0; in check_inf_nan()
58 …out << "std::isnan(" << m(4) << ") = "; check((std::isnan)(m(4)),false); std::cout << " ; n… in check_inf_nan()
67 … if( (std::isnan) (m(3))) g_test_level=1; VERIFY( !(numext::isnan)(m(4)) ); g_test_level=0; in check_inf_nan()
69 … if(!(std::isnan) (m(3))) g_test_level=1; VERIFY( m.hasNaN() ); g_test_level=0; in check_inf_nan()
76 …cout << "std::isnan(" << m(3) << ") = "; check((std::isnan)(m(3)),false); std::cout << " ; n… in check_inf_nan()
85 … if( (std::isnan) (m(3))) g_test_level=1; VERIFY( !(numext::isnan)(m(3)) ); g_test_level=0; in check_inf_nan()
87 … if( (std::isnan) (m(3))) g_test_level=1; VERIFY( !m.hasNaN() ); g_test_level=0; in check_inf_nan()
/aosp_15_r20/external/libcxx/test/std/numerics/complex.number/complex.transcendentals/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/numerics/complex.number/complex.transcendentals/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
H A 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 …]
/aosp_15_r20/external/apache-commons-math/src/main/java/org/apache/commons/math3/complex/
H A DComplex.java81 private final transient boolean isNaN; field in Complex
105 isNaN = Double.isNaN(real) || Double.isNaN(imaginary); in Complex()
106 isInfinite = !isNaN && (Double.isInfinite(real) || Double.isInfinite(imaginary)); in Complex()
117 if (isNaN) { in abs()
153 if (isNaN || addend.isNaN) { in add()
169 if (isNaN || Double.isNaN(addend)) { in add()
190 if (isNaN) { in conjugate()
233 if (isNaN || divisor.isNaN) { in divide()
269 if (isNaN || Double.isNaN(divisor)) { in divide()
283 if (isNaN) { in reciprocal()
[all …]
/aosp_15_r20/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/easing/
H A DFloatAnimation.java42 if (!Float.isNaN(mInitialValue)) { in toString()
45 if (!Float.isNaN(mTargetValue)) { in toString()
48 if (!Float.isNaN(mWrap)) { in toString()
88 if (!Float.isNaN(initialValue)) { in packToFloatArray()
100 if (!Float.isNaN(initialValue)) { in packToFloatArray()
103 if (!Float.isNaN(wrap)) { in packToFloatArray()
109 if (!Float.isNaN(wrap) || !Float.isNaN(initialValue)) { in packToFloatArray()
120 int wrapBit = Float.isNaN(wrap) ? 0 : 1; in packToFloatArray()
121 int initBit = Float.isNaN(initialValue) ? 0 : 2; in packToFloatArray()
130 if (!Float.isNaN(initialValue)) { in packToFloatArray()
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/math/cmplx/
Dcmath_test.go902 case a != a && b != b: // math.IsNaN(a) && math.IsNaN(b):
941 return math.IsNaN(x) || math.IsInf(x, 0) || x == 0 || x == 1 || x == -1
966 if math.IsNaN(imag(v.in)) || math.IsNaN(imag(v.want)) {
991 if math.IsNaN(imag(v.in)) || math.IsNaN(imag(v.want)) {
1017 if math.IsNaN(imag(v.in)) || math.IsNaN(imag(v.want)) {
1025 if math.IsNaN(real(v.in)) || math.IsNaN(real(v.want)) {
1050 if math.IsNaN(imag(v.in)) || math.IsNaN(imag(v.want)) {
1058 if math.IsNaN(real(v.in)) || math.IsNaN(real(v.want)) {
1083 if math.IsNaN(imag(v.in)) || math.IsNaN(imag(v.want)) {
1091 if math.IsNaN(real(v.in)) || math.IsNaN(real(v.want)) {
[all …]
/aosp_15_r20/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.py200 if math.isnan(expected) and math.isnan(got):
267 self.assertTrue(math.isnan(math.acos(NAN)))
277 self.assertTrue(math.isnan(math.acosh(NAN)))
288 self.assertTrue(math.isnan(math.asin(NAN)))
297 self.assertTrue(math.isnan(math.asinh(NAN)))
306 self.assertTrue(math.isnan(math.atan(NAN)))
317 self.assertTrue(math.isnan(math.atanh(NAN)))
334 self.assertTrue(math.isnan(math.atan2(0., NAN)))
342 self.assertTrue(math.isnan(math.atan2(-0., NAN)))
350 self.assertTrue(math.isnan(math.atan2(INF, NAN)))
[all …]
/aosp_15_r20/bionic/tests/
H A Dmath_test.cpp21 // isfinite, isinf, isnan, isnormal, isgreater, isgreaterequal, isless,
25 // _overloaded_ functions available in namespace std. So the isnan() macro,
26 // for example, is replaced by std::isnan(float), std::isnan(double),
27 // and std::isnan(long double).
43 capture_generic_macro(test_capture_isnan, isnan) in capture_generic_macro()
71 #define isnan test_capture_isnan in capture_generic_macro() macro
167 TEST(math_h, isnan) { in TEST() argument
168 ASSERT_FALSE(isnan(123.0f)); in TEST()
169 ASSERT_FALSE(isnan(123.0)); in TEST()
170 ASSERT_FALSE(isnan(123.0L)); in TEST()
[all …]
/aosp_15_r20/external/pytorch/aten/src/ATen/cuda/
H A Dllvm_complex.cpp300 if (isnan(__x) && isnan(__y))
307 if (isnan(__c))
309 if (isnan(__d))
317 if (isnan(__a))
319 if (isnan(__b))
326 if (isnan(__a))
328 if (isnan(__b))
330 if (isnan(__c))
332 if (isnan(__d))
384 if (isnan(__x) && isnan(__y))
[all …]

12345678910>>...185