/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/ |
D | cases.h | 20 std::complex<double> x[] = 22 std::complex<double>( 1.e-6, 1.e-6), 23 std::complex<double>(-1.e-6, 1.e-6), 24 std::complex<double>(-1.e-6, -1.e-6), 25 std::complex<double>( 1.e-6, -1.e-6), 27 std::complex<double>( 1.e+6, 1.e-6), 28 std::complex<double>(-1.e+6, 1.e-6), 29 std::complex<double>(-1.e+6, -1.e-6), 30 std::complex<double>( 1.e+6, -1.e-6), 32 std::complex<double>( 1.e-6, 1.e+6), [all …]
|
/ndk/sources/cxx-stl/stlport/stlport/stl/ |
D | _complex.h | 36 struct complex { struct 38 typedef complex<_Tp> _Self; argument 41 complex() : _M_re(0), _M_im(0) {} in complex() argument 42 complex(const value_type& __x) in complex() function 44 complex(const value_type& __x, const value_type& __y) in complex() function 46 complex(const _Self& __z) in complex() argument 57 explicit complex(const complex<_Tp2>& __z) in complex() argument 61 _Self& operator=(const complex<_Tp2>& __z) { 110 template <class _Tp2> _Self& operator+= (const complex<_Tp2>& __z) { 116 template <class _Tp2> _Self& operator-= (const complex<_Tp2>& __z) { [all …]
|
/ndk/sources/cxx-stl/stlport/src/ |
D | complex_trig.cpp | 68 static complex<_Tp> sinT(const complex<_Tp>& z) { in sinT() 69 return complex<_Tp>(::sin(z._M_re) * ::cosh(z._M_im), in sinT() 73 _STLP_DECLSPEC complex<float> _STLP_CALL sin(const complex<float>& z) in sin() 76 _STLP_DECLSPEC complex<double> _STLP_CALL sin(const complex<double>& z) in sin() 80 _STLP_DECLSPEC complex<long double> _STLP_CALL sin(const complex<long double>& z) in sin() 87 static complex<_Tp> cosT(const complex<_Tp>& z) { in cosT() 88 return complex<_Tp>(::cos(z._M_re) * ::cosh(z._M_im), in cosT() 92 _STLP_DECLSPEC complex<float> _STLP_CALL cos(const complex<float>& z) in cos() 95 _STLP_DECLSPEC complex<double> _STLP_CALL cos(const complex<double>& z) in cos() 99 _STLP_DECLSPEC complex<long double> _STLP_CALL cos(const complex<long double>& z) in cos() [all …]
|
D | complex.cpp | 40 _STLP_DECLSPEC float _STLP_CALL abs(const complex<float>& __z) in abs() 43 _STLP_DECLSPEC double _STLP_CALL abs(const complex<double>& __z) in abs() 48 _STLP_DECLSPEC long double _STLP_CALL abs(const complex<long double>& __z) in abs() 55 _STLP_DECLSPEC float _STLP_CALL arg(const complex<float>& __z) in arg() 59 _STLP_DECLSPEC double _STLP_CALL arg(const complex<double>& __z) in arg() 64 _STLP_DECLSPEC long double _STLP_CALL arg(const complex<long double>& __z) in arg() 70 _STLP_DECLSPEC complex<float> _STLP_CALL polar(const float& __rho, const float& __phi) in polar() 71 { return complex<float>(__rho * ::cos(__phi), __rho * ::sin(__phi)); } in polar() 73 _STLP_DECLSPEC complex<double> _STLP_CALL polar(const double& __rho, const double& __phi) in polar() 74 { return complex<double>(__rho * ::cos(__phi), __rho * ::sin(__phi)); } in polar() [all …]
|
D | complex_io.cpp | 30 operator<< (basic_ostream<char, char_traits<char> >& __os, const complex<float>& __z) in operator <<() 35 operator<< (basic_ostream<char, char_traits<char> >& __os, const complex<double>& __z) in operator <<() 41 operator<< (basic_ostream<char, char_traits<char> >& __os, const complex<long double>& __z) in operator <<() 48 operator>>(basic_istream<char, char_traits<char> >& __is, complex<float>& __z) { in operator >>() 68 __z = complex<float>(__re, __im); in operator >>() 74 operator>>(basic_istream<char, char_traits<char> >& __is, complex<double>& __z) { in operator >>() 94 __z = complex<double>(__re, __im); in operator >>() 101 operator>>(basic_istream<char, char_traits<char> >& __is, complex<long double>& __z) { in operator >>() 121 __z = complex<long double>(__re, __im); in operator >>() 130 operator>>(basic_istream<wchar_t, char_traits<wchar_t> >&, complex<float>&); [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ |
D | complex | 2 //===--------------------------- complex ----------------------------------===// 15 complex synopsis 21 class complex 26 complex(const T& re = T(), const T& im = T()); // constexpr in C++14 27 complex(const complex&); // constexpr in C++14 28 template<class X> complex(const complex<X>&); // constexpr in C++14 36 complex<T>& operator= (const T&); 37 complex<T>& operator+=(const T&); 38 complex<T>& operator-=(const T&); 39 complex<T>& operator*=(const T&); [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/complex.ops/ |
D | stream_input.pass.cpp | 24 std::complex<double> c; in main() 26 assert(c == std::complex<double>(5, 0)); in main() 31 std::complex<double> c; in main() 33 assert(c == std::complex<double>(5, 0)); in main() 38 std::complex<double> c; in main() 40 assert(c == std::complex<double>(5, 0)); in main() 45 std::complex<double> c; in main() 47 assert(c == std::complex<double>(0, 0)); in main() 52 std::complex<double> c; in main() 54 assert(c == std::complex<double>(5.5, 0)); in main() [all …]
|
D | complex_minus_complex.pass.cpp | 21 test(const std::complex<T>& lhs, const std::complex<T>& rhs, std::complex<T> x) in test() 31 std::complex<T> lhs(1.5, 2.5); in test() 32 std::complex<T> rhs(3.5, 4.5); in test() 33 std::complex<T> x(-2.0, -2.0); in test() 37 std::complex<T> lhs(1.5, -2.5); in test() 38 std::complex<T> rhs(-3.5, 4.5); in test() 39 std::complex<T> x(5.0, -7.0); in test()
|
D | complex_plus_complex.pass.cpp | 21 test(const std::complex<T>& lhs, const std::complex<T>& rhs, std::complex<T> x) in test() 31 std::complex<T> lhs(1.5, 2.5); in test() 32 std::complex<T> rhs(3.5, 4.5); in test() 33 std::complex<T> x(5.0, 7.0); in test() 37 std::complex<T> lhs(1.5, -2.5); in test() 38 std::complex<T> rhs(-3.5, 4.5); in test() 39 std::complex<T> x(-2.0, 2.0); in test()
|
D | complex_not_equals_complex.pass.cpp | 25 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr() 26 constexpr std::complex<T> rhs(1.5, -2.5); in test_constexpr() 30 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr() 31 constexpr std::complex<T> rhs(1.5, 2.5); in test_constexpr() 43 std::complex<T> lhs(1.5, 2.5); in test() 44 std::complex<T> rhs(1.5, -2.5); in test() 48 std::complex<T> lhs(1.5, 2.5); in test() 49 std::complex<T> rhs(1.5, 2.5); in test()
|
D | complex_equals_complex.pass.cpp | 25 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr() 26 constexpr std::complex<T> rhs(1.5, -2.5); in test_constexpr() 30 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr() 31 constexpr std::complex<T> rhs(1.5, 2.5); in test_constexpr() 42 std::complex<T> lhs(1.5, 2.5); in test() 43 std::complex<T> rhs(1.5, -2.5); in test() 47 std::complex<T> lhs(1.5, 2.5); in test() 48 std::complex<T> rhs(1.5, 2.5); in test()
|
D | scalar_not_equals_complex.pass.cpp | 26 constexpr std::complex<T> rhs(1.5, 2.5); in test_constexpr() 31 constexpr std::complex<T> rhs(1.5, 0); in test_constexpr() 36 constexpr std::complex<T> rhs(1.5, 2.5); in test_constexpr() 41 constexpr std::complex<T> rhs(1.5, 0); in test_constexpr() 53 std::complex<T> rhs(1.5, 2.5); in test() 58 std::complex<T> rhs(1.5, 0); in test() 63 std::complex<T> rhs(1.5, 2.5); in test() 68 std::complex<T> rhs(1.5, 0); in test()
|
D | scalar_equals_complex.pass.cpp | 26 constexpr std::complex<T> rhs(1.5, 2.5); in test_constexpr() 31 constexpr std::complex<T> rhs(1.5, 0); in test_constexpr() 36 constexpr std::complex<T> rhs(1.5, 2.5); in test_constexpr() 41 constexpr std::complex<T> rhs(1.5, 0); in test_constexpr() 53 std::complex<T> rhs(1.5, 2.5); in test() 58 std::complex<T> rhs(1.5, 0); in test() 63 std::complex<T> rhs(1.5, 2.5); in test() 68 std::complex<T> rhs(1.5, 0); in test()
|
D | complex_not_equals_scalar.pass.cpp | 25 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr() 30 constexpr std::complex<T> lhs(1.5, 0); in test_constexpr() 35 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr() 40 constexpr std::complex<T> lhs(1.5, 0); in test_constexpr() 52 std::complex<T> lhs(1.5, 2.5); in test() 57 std::complex<T> lhs(1.5, 0); in test() 62 std::complex<T> lhs(1.5, 2.5); in test() 67 std::complex<T> lhs(1.5, 0); in test()
|
D | complex_equals_scalar.pass.cpp | 25 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr() 30 constexpr std::complex<T> lhs(1.5, 0); in test_constexpr() 35 constexpr std::complex<T> lhs(1.5, 2.5); in test_constexpr() 40 constexpr std::complex<T> lhs(1.5, 0); in test_constexpr() 52 std::complex<T> lhs(1.5, 2.5); in test() 57 std::complex<T> lhs(1.5, 0); in test() 62 std::complex<T> lhs(1.5, 2.5); in test() 67 std::complex<T> lhs(1.5, 0); in test()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/complex.value.ops/ |
D | conj.pass.cpp | 21 test(const std::complex<T>& z, std::complex<T> x) in test() 30 test(std::complex<T>(1, 2), std::complex<T>(1, -2)); in test() 31 test(std::complex<T>(-1, 2), std::complex<T>(-1, -2)); in test() 32 test(std::complex<T>(1, -2), std::complex<T>(1, 2)); in test() 33 test(std::complex<T>(-1, -2), std::complex<T>(-1, 2)); in test()
|
D | proj.pass.cpp | 23 test(const std::complex<T>& z, std::complex<T> x) in test() 32 test(std::complex<T>(1, 2), std::complex<T>(1, 2)); in test() 33 test(std::complex<T>(-1, 2), std::complex<T>(-1, 2)); in test() 34 test(std::complex<T>(1, -2), std::complex<T>(1, -2)); in test() 35 test(std::complex<T>(-1, -2), std::complex<T>(-1, -2)); in test() 43 std::complex<double> r = proj(x[i]); in test_edges()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/complex.literals/ |
D | literals.pass.cpp | 22 static_assert ( std::is_same<decltype( 3.0il ), std::complex<long double>>::value, "" ); in main() 23 static_assert ( std::is_same<decltype( 3il ), std::complex<long double>>::value, "" ); in main() 24 static_assert ( std::is_same<decltype( 3.0i ), std::complex<double>>::value, "" ); in main() 25 static_assert ( std::is_same<decltype( 3i ), std::complex<double>>::value, "" ); in main() 26 static_assert ( std::is_same<decltype( 3.0if ), std::complex<float>>::value, "" ); in main() 27 static_assert ( std::is_same<decltype( 3if ), std::complex<float>>::value, "" ); in main() 30 std::complex<long double> c1 = 3.0il; in main() 31 assert ( c1 == std::complex<long double>(0, 3.0)); in main() 37 std::complex<double> c1 = 3.0i; in main() 38 assert ( c1 == std::complex<double>(0, 3.0)); in main() [all …]
|
D | literals2.pass.cpp | 22 std::complex<long double> c1 = 3.0il; in main() 23 assert ( c1 == std::complex<long double>(0, 3.0)); in main() 29 std::complex<double> c1 = 3.0i; in main() 30 assert ( c1 == std::complex<double>(0, 3.0)); in main() 36 std::complex<float> c1 = 3.0if; in main() 37 assert ( c1 == std::complex<float>(0, 3.0)); in main()
|
D | literals1.pass.cpp | 22 std::complex<long double> c1 = 3.0il; in main() 23 assert ( c1 == std::complex<long double>(0, 3.0)); in main() 29 std::complex<double> c1 = 3.0i; in main() 30 assert ( c1 == std::complex<double>(0, 3.0)); in main() 36 std::complex<float> c1 = 3.0if; in main() 37 assert ( c1 == std::complex<float>(0, 3.0)); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/cmplx.over/ |
D | pow.pass.cpp | 40 test(T x, const std::complex<U>& y) in test() 43 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test() 44 assert(std::pow(x, y) == pow(std::complex<V>(x, 0), std::complex<V>(y))); in test() 49 test(const std::complex<T>& x, U y) in test() 52 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test() 53 assert(std::pow(x, y) == pow(std::complex<V>(x), std::complex<V>(y, 0))); in test() 58 test(const std::complex<T>& x, const std::complex<U>& y) in test() 61 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test() 62 assert(std::pow(x, y) == pow(std::complex<V>(x), std::complex<V>(y))); in test() 69 test(T(3), std::complex<U>(4, 5)); in test() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/complex.transcendentals/ |
D | tan.pass.cpp | 23 test(const std::complex<T>& c, std::complex<T> x) in test() 32 test(std::complex<T>(0, 0), std::complex<T>(0, 0)); in test() 33 test(std::complex<T>(10000, -10000), std::complex<T>(0, -1)); in test() 38 typedef std::complex<double> C; in test_edges() 43 std::complex<double> r = tan(x[i]); in test_edges() 44 std::complex<double> t1(-imag(x[i]), real(x[i])); in test_edges() 45 std::complex<double> t2 = tanh(t1); in test_edges() 46 std::complex<double> z(imag(t2), -real(t2)); in test_edges()
|
D | sin.pass.cpp | 23 test(const std::complex<T>& c, std::complex<T> x) in test() 32 test(std::complex<T>(0, 0), std::complex<T>(0, 0)); in test() 37 typedef std::complex<double> C; in test_edges() 42 std::complex<double> r = sin(x[i]); in test_edges() 43 std::complex<double> t1(-imag(x[i]), real(x[i])); in test_edges() 44 std::complex<double> t2 = sinh(t1); in test_edges() 45 std::complex<double> z(imag(t2), -real(t2)); in test_edges()
|
D | atan.pass.cpp | 23 test(const std::complex<T>& c, std::complex<T> x) in test() 32 test(std::complex<T>(0, 0), std::complex<T>(0, 0)); in test() 37 typedef std::complex<double> C; in test_edges() 41 std::complex<double> r = atan(x[i]); in test_edges() 42 std::complex<double> t1(-imag(x[i]), real(x[i])); in test_edges() 43 std::complex<double> t2 = atanh(t1); in test_edges() 44 std::complex<double> z(imag(t2), -real(t2)); in test_edges()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/complex.members/ |
D | construct.pass.cpp | 22 const std::complex<T> c; in test() 27 const std::complex<T> c = 7.5; in test() 32 const std::complex<T> c(8.5); in test() 37 const std::complex<T> c(10.5, -9.5); in test() 43 constexpr std::complex<T> c; in test() 48 constexpr std::complex<T> c = 7.5; in test() 53 constexpr std::complex<T> c(8.5); in test() 58 constexpr std::complex<T> c(10.5, -9.5); in test()
|