Searched refs:complex (Results 1 - 25 of 328) sorted by relevance

1234567891011>>

/external/stlport/test/unit/
H A Dcomplex_header_test.cpp8 #include <complex>
/external/clang/test/Headers/Inputs/include/
H A Dcomplex.h3 #define complex _Complex macro
/external/libcxx/test/numerics/complex.number/
H A Dcases.h10 // <complex>
17 #include <complex>
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<doubl
[all...]
H A Dversion.pass.cpp10 // <complex>
12 #include <complex>
/external/libcxx/test/numerics/complex.number/complex.literals/
H A Dliterals1.fail.cpp10 #include <complex>
16 std::complex<float> foo = 1.0if; // should fail w/conversion operator not found
H A Dliterals1.pass.cpp12 #include <complex>
22 std::complex<long double> c1 = 3.0il;
23 assert ( c1 == std::complex<long double>(0, 3.0));
29 std::complex<double> c1 = 3.0i;
30 assert ( c1 == std::complex<double>(0, 3.0));
36 std::complex<float> c1 = 3.0if;
37 assert ( c1 == std::complex<float>(0, 3.0));
H A Dliterals2.pass.cpp12 #include <complex>
22 std::complex<long double> c1 = 3.0il;
23 assert ( c1 == std::complex<long double>(0, 3.0));
29 std::complex<double> c1 = 3.0i;
30 assert ( c1 == std::complex<double>(0, 3.0));
36 std::complex<float> c1 = 3.0if;
37 assert ( c1 == std::complex<float>(0, 3.0));
/external/libcxx/test/numerics/complex.number/complex.value.ops/
H A Dconj.pass.cpp10 // <complex>
13 // complex<T>
14 // conj(const complex<T>& x);
16 #include <complex>
21 test(const std::complex<T>& z, std::complex<T> x)
30 test(std::complex<T>(1, 2), std::complex<T>(1, -2));
31 test(std::complex<T>(-1, 2), std::complex<
[all...]
/external/libcxx/test/depr/depr.c.headers/
H A Dcomplex.h.pass.cpp10 // <complex.h>
12 #include <complex.h>
20 std::complex<double> d;
/external/libcxx/test/numerics/complex.number/complex.special/
H A Ddouble_long_double_implicit.fail.cpp10 // <complex>
12 // template<> class complex<double>
15 // explicit constexpr complex(const complex<long double>&);
18 #include <complex>
23 const std::complex<long double> cd(2.5, 3.5);
24 std::complex<double> cf = cd;
H A Dfloat_double_implicit.fail.cpp10 // <complex>
12 // template<> class complex<float>
15 // explicit constexpr complex(const complex<double>&);
18 #include <complex>
23 const std::complex<double> cd(2.5, 3.5);
24 std::complex<float> cf = cd;
H A Dfloat_long_double_implicit.fail.cpp10 // <complex>
12 // template<> class complex<float>
15 // explicit constexpr complex(const complex<long double>&);
18 #include <complex>
23 const std::complex<long double> cd(2.5, 3.5);
24 std::complex<float> cf = cd;
H A Ddouble_float_explicit.pass.cpp10 // <complex>
12 // template<> class complex<double>
15 // constexpr complex(const complex<float>&);
18 #include <complex>
24 const std::complex<float> cd(2.5, 3.5);
25 std::complex<double> cf(cd);
31 constexpr std::complex<float> cd(2.5, 3.5);
32 constexpr std::complex<double> cf(cd);
H A Ddouble_float_implicit.pass.cpp10 // <complex>
12 // template<> class complex<double>
15 // constexpr complex(const complex<float>&);
18 #include <complex>
24 const std::complex<float> cd(2.5, 3.5);
25 std::complex<double> cf = cd;
31 constexpr std::complex<float> cd(2.5, 3.5);
32 constexpr std::complex<double> cf = cd;
/external/libcxx/test/numerics/complex.number/complex.ops/
H A Dcomplex_minus_scalar.pass.cpp10 // <complex>
13 // complex<T>
14 // operator-(const complex<T>& lhs, const T& rhs);
16 #include <complex>
21 test(const std::complex<T>& lhs, const T& rhs, std::complex<T> x)
31 std::complex<T> lhs(1.5, 2.5);
33 std::complex<T> x(-2.0, 2.5);
37 std::complex<T> lhs(1.5, -2.5);
39 std::complex<
[all...]
H A Dcomplex_plus_scalar.pass.cpp10 // <complex>
13 // complex<T>
14 // operator+(const complex<T>& lhs, const T& rhs);
16 #include <complex>
21 test(const std::complex<T>& lhs, const T& rhs, std::complex<T> x)
31 std::complex<T> lhs(1.5, 2.5);
33 std::complex<T> x(5.0, 2.5);
37 std::complex<T> lhs(1.5, -2.5);
39 std::complex<
[all...]
H A Dscalar_minus_complex.pass.cpp10 // <complex>
13 // complex<T>
14 // operator-(const T& lhs, const complex<T>& rhs);
16 #include <complex>
21 test(const T& lhs, const std::complex<T>& rhs, std::complex<T> x)
32 std::complex<T> rhs(3.5, 4.5);
33 std::complex<T> x(-2.0, -4.5);
38 std::complex<T> rhs(-3.5, 4.5);
39 std::complex<
[all...]
H A Dscalar_plus_complex.pass.cpp10 // <complex>
13 // complex<T>
14 // operator+(const T& lhs, const complex<T>& rhs);
16 #include <complex>
21 test(const T& lhs, const std::complex<T>& rhs, std::complex<T> x)
32 std::complex<T> rhs(3.5, 4.5);
33 std::complex<T> x(5.0, 4.5);
38 std::complex<T> rhs(-3.5, 4.5);
39 std::complex<
[all...]
H A Dcomplex_minus_complex.pass.cpp10 // <complex>
13 // complex<T>
14 // operator-(const complex<T>& lhs, const complex<T>& rhs);
16 #include <complex>
21 test(const std::complex<T>& lhs, const std::complex<T>& rhs, std::complex<T> x)
31 std::complex<T> lhs(1.5, 2.5);
32 std::complex<
[all...]
H A Dcomplex_plus_complex.pass.cpp10 // <complex>
13 // complex<T>
14 // operator+(const complex<T>& lhs, const complex<T>& rhs);
16 #include <complex>
21 test(const std::complex<T>& lhs, const std::complex<T>& rhs, std::complex<T> x)
31 std::complex<T> lhs(1.5, 2.5);
32 std::complex<
[all...]
H A Dcomplex_divide_scalar.pass.cpp10 // <complex>
13 // complex<T>
14 // operator/(const complex<T>& lhs, const T& rhs);
16 #include <complex>
21 test(const std::complex<T>& lhs, const T& rhs, std::complex<T> x)
30 std::complex<T> lhs(-4.0, 7.5);
32 std::complex<T> x(-2, 3.75);
H A Dcomplex_times_scalar.pass.cpp10 // <complex>
13 // complex<T>
14 // operator*(const complex<T>& lhs, const T& rhs);
16 #include <complex>
21 test(const std::complex<T>& lhs, const T& rhs, std::complex<T> x)
30 std::complex<T> lhs(1.5, 2.5);
32 std::complex<T> x(2.25, 3.75);
H A Dscalar_divide_complex.pass.cpp10 // <complex>
13 // complex<T>
14 // operator/(const T& lhs, const complex<T>& rhs);
16 #include <complex>
21 test(const T& lhs, const std::complex<T>& rhs, std::complex<T> x)
31 std::complex<T> rhs(1.5, 2.5);
32 std::complex<T> x(-1.5, 2.5);
H A Dscalar_times_complex.pass.cpp10 // <complex>
13 // complex<T>
14 // operator*(const T& lhs, const complex<T>& rhs);
16 #include <complex>
21 test(const T& lhs, const std::complex<T>& rhs, std::complex<T> x)
31 std::complex<T> rhs(1.5, 2.5);
32 std::complex<T> x(2.25, 3.75);
/external/clang/test/SemaCXX/
H A Dcxx1y-user-defined-literals.cpp21 template<typename T> struct complex {}; struct in namespace:std
22 complex<float> operator""if(long double);
23 complex<float> operator""if(unsigned long long);
24 complex<double> operator""i(long double);
25 complex<double> operator""i(unsigned long long);
26 complex<long double> operator""il(long double);
27 complex<long double> operator""il(unsigned long long);
40 complex<float> cf1 = 1if, cf2 = 2.if, cf3 = 0x3if;
41 complex<double> cd1 = 1i, cd2 = 2.i, cd3 = 0b0110101i;
42 complex<lon
[all...]

Completed in 358 milliseconds

1234567891011>>