/external/libcxx/test/std/numerics/complex.number/complex.transcendentals/ |
D | atanh.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 assert(std::signbit(r.real()) == std::signbit(testcases[i].real())); in test_edges() 47 else if ( testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 49 assert(r.real() == 0); in test_edges() 50 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() 53 else if (std::abs(testcases[i].real()) == 1 && testcases[i].imag() == 0) in test_edges() 55 assert(std::isinf(r.real())); in test_edges() 56 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() 60 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 62 assert(r.real() == 0); in test_edges() [all …]
|
D | acosh.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 assert(!std::signbit(r.real())); in test_edges() 50 else if (testcases[i].real() == 1 && testcases[i].imag() == 0) in test_edges() 52 assert(r.real() == 0); in test_edges() 53 assert(!std::signbit(r.real())); in test_edges() 57 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 59 assert(std::isinf(r.real())); in test_edges() 60 assert(r.real() > 0); in test_edges() 66 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 68 assert(std::isnan(r.real())); in test_edges() [all …]
|
D | asin.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 assert(std::signbit(r.real()) == std::signbit(testcases[i].real())); in test_edges() 47 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 49 assert(r.real() == 0); in test_edges() 50 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() 54 else if ( testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 56 assert(r.real() == 0); in test_edges() 57 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); 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() [all …]
|
D | acos.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 is_about(r.real(), pi/2); in test_edges() 48 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 50 is_about(r.real(), pi/2); in test_edges() 53 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 55 is_about(r.real(), pi/2); 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() 64 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isfinite(testcases[i].… in test_edges() 66 is_about(r.real(), pi); in test_edges() [all …]
|
D | log.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 if (std::signbit(testcases[i].real())) in test_edges() 46 assert(std::isinf(r.real())); in test_edges() 47 assert(r.real() < 0); in test_edges() 55 assert(std::isinf(r.real())); in test_edges() 56 assert(r.real() < 0); in test_edges() 61 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 63 assert(std::isinf(r.real())); in test_edges() 64 assert(r.real() > 0); in test_edges() 70 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() [all …]
|
D | asinh.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 assert(std::signbit(r.real()) == std::signbit(testcases[i].real())); in test_edges() 47 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 49 assert(std::isinf(r.real())); in test_edges() 50 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() 56 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 58 assert(std::isnan(r.real())); in test_edges() 61 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges() 63 assert(std::isinf(r.real())); in test_edges() 64 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() [all …]
|
D | exp.pass.cpp | 41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 43 assert(r.real() == 1.0); in test_edges() 47 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 49 assert(std::isnan(r.real())); 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() 57 … else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && testcases[i].imag() == 0) in test_edges() 59 assert(std::isinf(r.real())); in test_edges() 60 assert(r.real() > 0); in test_edges() 64 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isinf(testcases[i].ima… in test_edges() [all …]
|
D | sinh.pass.cpp | 41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 43 assert(r.real() == 0); in test_edges() 44 assert(std::signbit(r.real()) == std::signbit(testcases[i].real())); in test_edges() 48 else if (testcases[i].real() == 0 && std::isinf(testcases[i].imag())) in test_edges() 50 assert(r.real() == 0); in test_edges() 53 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 55 assert(std::isnan(r.real())); in test_edges() 58 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 60 assert(r.real() == 0); in test_edges() 63 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() [all …]
|
D | cosh.pass.cpp | 41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 43 assert(r.real() == 1); in test_edges() 47 else if (testcases[i].real() == 0 && std::isinf(testcases[i].imag())) in test_edges() 49 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() 57 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 59 assert(std::isnan(r.real())); 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() [all …]
|
D | sqrt.pass.cpp | 26 is_about(real(a), real(x)); in test() 43 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 45 assert(!std::signbit(r.real())); in test_edges() 50 assert(std::isinf(r.real())); in test_edges() 51 assert(r.real() > 0); in test_edges() 55 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 57 assert(std::isnan(r.real())); in test_edges() 60 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isfinite(testcases[i].… in test_edges() 62 assert(r.real() == 0); in test_edges() 63 assert(!std::signbit(r.real())); in test_edges() [all …]
|
D | tanh.pass.cpp | 41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 43 assert(r.real() == 0); in test_edges() 44 assert(std::signbit(r.real()) == std::signbit(testcases[i].real())); in test_edges() 48 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 50 assert(std::isnan(r.real())); 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() 58 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges() 60 assert(r.real() == 1); in test_edges() 64 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() [all …]
|
/external/python/cpython3/Modules/ |
D | cmathmodule.c | 104 r.real = 0.0; in c_infj() 125 r.real = 0.0; in c_nanj() 183 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \ 185 return table[special_type((z).real)] \ 225 if (fabs(z.real) > CM_LARGE_DOUBLE || fabs(z.imag) > CM_LARGE_DOUBLE) { in cmath_acos_impl() 227 r.real = atan2(fabs(z.imag), z.real); in cmath_acos_impl() 230 if (z.real < 0.) { in cmath_acos_impl() 231 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl() 234 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl() 238 s1.real = 1.-z.real; in cmath_acos_impl() [all …]
|
/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
D | covariance_matrix_generator_unittest.cc | 41 EXPECT_NEAR(actual_els[0][0].real(), 1.f, kTolerance); in TEST() 42 EXPECT_NEAR(actual_els[0][1].real(), 0.9998f, kTolerance); in TEST() 43 EXPECT_NEAR(actual_els[1][0].real(), 0.9998f, kTolerance); in TEST() 44 EXPECT_NEAR(actual_els[1][1].real(), 1.f, kTolerance); in TEST() 69 EXPECT_NEAR(actual_els[0][0].real(), 1.f, kTolerance); in TEST() 70 EXPECT_NEAR(actual_els[0][1].real(), 0.9573f, kTolerance); in TEST() 71 EXPECT_NEAR(actual_els[0][2].real(), 0.8347f, kTolerance); in TEST() 72 EXPECT_NEAR(actual_els[1][0].real(), 0.9573f, kTolerance); in TEST() 73 EXPECT_NEAR(actual_els[1][1].real(), 1.f, kTolerance); in TEST() 74 EXPECT_NEAR(actual_els[1][2].real(), 0.9573f, kTolerance); in TEST() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/ |
D | Complex.java | 74 private final double real; field in Complex 88 public Complex(double real, double imaginary) { in Complex() argument 90 this.real = real; in Complex() 93 isNaN = Double.isNaN(real) || Double.isNaN(imaginary); in Complex() 95 (Double.isInfinite(real) || Double.isInfinite(imaginary)); in Complex() 117 if (FastMath.abs(real) < FastMath.abs(imaginary)) { in abs() 119 return FastMath.abs(real); in abs() 121 double q = real / imaginary; in abs() 124 if (real == 0.0) { in abs() 127 double q = imaginary / real; in abs() [all …]
|
/external/python/cpython2/Modules/ |
D | cmathmodule.c | 101 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \ 103 return table[special_type((z).real)] \ 133 if (fabs(z.real) > CM_LARGE_DOUBLE || fabs(z.imag) > CM_LARGE_DOUBLE) { in c_acos() 135 r.real = atan2(fabs(z.imag), z.real); in c_acos() 138 if (z.real < 0.) { in c_acos() 139 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos() 142 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos() 146 s1.real = 1.-z.real; in c_acos() 149 s2.real = 1.+z.real; in c_acos() 152 r.real = 2.*atan2(s1.real, s2.real); in c_acos() [all …]
|
/external/python/cpython3/Objects/ |
D | complexobject.c | 19 r.real = a.real + b.real; in _Py_c_sum() 28 r.real = a.real - b.real; in _Py_c_diff() 37 r.real = -a.real; in _Py_c_neg() 46 r.real = a.real*b.real - a.imag*b.imag; in _Py_c_prod() 47 r.imag = a.real*b.imag + a.imag*b.real; in _Py_c_prod() 78 const double abs_breal = b.real < 0 ? -b.real : b.real; in _Py_c_quot() 85 r.real = r.imag = 0.0; in _Py_c_quot() 88 const double ratio = b.imag / b.real; in _Py_c_quot() 89 const double denom = b.real + b.imag * ratio; in _Py_c_quot() 90 r.real = (a.real + a.imag * ratio) / denom; in _Py_c_quot() [all …]
|
/external/cn-cbor/test/ |
D | ctest.h | 105 void assert_str(const char* exp, const char* real, const char* caller, int line); 106 #define ASSERT_STR(exp, real) assert_str(exp, real, __FILE__, __LINE__) argument 109 const unsigned char* real, int realsize, 111 #define ASSERT_DATA(exp, expsize, real, realsize) \ argument 112 assert_data(exp, expsize, real, realsize, __FILE__, __LINE__) 114 void assert_equal(long exp, long real, const char* caller, int line); 115 #define ASSERT_EQUAL(exp, real) assert_equal(exp, real, __FILE__, __LINE__) argument 117 void assert_not_equal(long exp, long real, const char* caller, int line); 118 #define ASSERT_NOT_EQUAL(exp, real) assert_not_equal(exp, real, __FILE__, __LINE__) argument 120 void assert_null(void* real, const char* caller, int line); [all …]
|
/external/python/cpython2/Objects/ |
D | complexobject.c | 37 r.real = a.real + b.real; in c_sum() 46 r.real = a.real - b.real; in c_diff() 55 r.real = -a.real; in c_neg() 64 r.real = a.real*b.real - a.imag*b.imag; in c_prod() 65 r.imag = a.real*b.imag + a.imag*b.real; in c_prod() 96 const double abs_breal = b.real < 0 ? -b.real : b.real; in c_quot() 103 r.real = r.imag = 0.0; in c_quot() 106 const double ratio = b.imag / b.real; in c_quot() 107 const double denom = b.real + b.imag * ratio; in c_quot() 108 r.real = (a.real + a.imag * ratio) / denom; in c_quot() [all …]
|
/external/vulkan-validation-layers/libs/glm/gtx/ |
D | dual_quaternion.inl | 43 real(tquat<T, P>()), 52 real(r), 62 real(r), 72 real(q), 107 return (&real)[i]; 114 return (&real)[i]; 126 this->real *= s; 137 this->real /= s; 151 return detail::tdualquat<T, P>(-q.real,-q.dual); 161 return detail::tdualquat<T, P>(q.real + p.real,q.dual + p.dual); [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/ |
D | InvokeDynamicTest.java | 27 Real real = new Real(); in directlyOn() local 28 RealShadow shadow = Shadow.extract(real); in directlyOn() 30 assertThat(real.x).isEqualTo(-1); in directlyOn() 33 real.setX(5); in directlyOn() 34 assertThat(real.x).isEqualTo(-5); in directlyOn() 37 Shadow.directlyOn(real, Real.class).setX(42); in directlyOn() 38 assertThat(real.x).isEqualTo(42); in directlyOn() 45 RealCopy real = new RealCopy(); in rebindShadow1() local 46 real.setX(42); in rebindShadow1() 47 assertThat(real.x).isEqualTo(1); in rebindShadow1() [all …]
|
/external/cblas/testing/ |
D | c_cblas2.c | 26 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_cgemv() 58 A[ LDA*(j-jcol)+irow ].real=a[ (*lda)*j+i ].real; in F77_cgbmv() 65 A[ LDA*j+irow ].real=a[ (*lda)*j+i ].real; in F77_cgbmv() 72 A[ LDA*j+irow ].real=a[ (*lda)*(j-jcol)+i ].real; in F77_cgbmv() 100 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_cgeru() 106 a[ (*lda)*j+i ].real=A[ LDA*i+j ].real; in F77_cgeru() 128 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_cgerc() 134 a[ (*lda)*j+i ].real=A[ LDA*i+j ].real; in F77_cgerc() 160 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_chemv() 199 A[ LDA*(j-jcol)+irow ].real=a[ (*lda)*j+i ].real; in F77_chbmv() [all …]
|
D | c_zblas2.c | 26 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_zgemv() 58 A[ LDA*(j-jcol)+irow ].real=a[ (*lda)*j+i ].real; in F77_zgbmv() 65 A[ LDA*j+irow ].real=a[ (*lda)*j+i ].real; in F77_zgbmv() 72 A[ LDA*j+irow ].real=a[ (*lda)*(j-jcol)+i ].real; in F77_zgbmv() 100 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_zgeru() 106 a[ (*lda)*j+i ].real=A[ LDA*i+j ].real; in F77_zgeru() 128 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_zgerc() 134 a[ (*lda)*j+i ].real=A[ LDA*i+j ].real; in F77_zgerc() 160 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_zhemv() 199 A[ LDA*(j-jcol)+irow ].real=a[ (*lda)*j+i ].real; in F77_zhbmv() [all …]
|
D | c_cblas3.c | 32 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_cgemm() 41 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_cgemm() 51 B[i*LDB+j].real=b[j*(*ldb)+i].real; in F77_cgemm() 60 B[i*LDB+j].real=b[j*(*ldb)+i].real; in F77_cgemm() 69 C[i*LDC+j].real=c[j*(*ldc)+i].real; in F77_cgemm() 76 c[j*(*ldc)+i].real=C[i*LDC+j].real; in F77_cgemm() 109 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_chemm() 118 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_chemm() 126 B[i*LDB+j].real=b[j*(*ldb)+i].real; in F77_chemm() 133 C[i*LDC+j].real=c[j*(*ldc)+i].real; in F77_chemm() [all …]
|
D | c_zblas3.c | 32 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_zgemm() 41 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_zgemm() 51 B[i*LDB+j].real=b[j*(*ldb)+i].real; in F77_zgemm() 60 B[i*LDB+j].real=b[j*(*ldb)+i].real; in F77_zgemm() 69 C[i*LDC+j].real=c[j*(*ldc)+i].real; in F77_zgemm() 76 c[j*(*ldc)+i].real=C[i*LDC+j].real; in F77_zgemm() 109 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_zhemm() 118 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_zhemm() 126 B[i*LDB+j].real=b[j*(*ldb)+i].real; in F77_zhemm() 133 C[i*LDC+j].real=c[j*(*ldc)+i].real; in F77_zhemm() [all …]
|
/external/libcxx/include/ |
D | complex | 30 T real() const; // constexpr in C++14 33 void real(T); 60 constexpr float real() const; 61 void real(float); 89 constexpr double real() const; 90 void real(double); 118 constexpr long double real() const; 119 void real(long double); 168 template<class T> T real(const complex<T>&); // constexpr in C++14 169 long double real(long double); // constexpr in C++14 [all …]
|