Home
last modified time | relevance | path

Searched refs:complex (Results 1 – 25 of 490) sorted by relevance

12345678910>>...20

/external/libcxx/test/std/numerics/complex.number/
Dcases.h20 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 …]
/external/libcxx/include/
Dcomplex2 //===--------------------------- 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 …]
/external/libcxx/test/std/numerics/complex.number/complex.ops/
Dstream_input.pass.cpp24 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 …]
Dcomplex_plus_complex.pass.cpp21 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()
Dcomplex_minus_complex.pass.cpp21 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()
Dcomplex_not_equals_complex.pass.cpp25 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()
Dcomplex_equals_complex.pass.cpp25 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()
Dcomplex_equals_scalar.pass.cpp25 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()
Dscalar_equals_complex.pass.cpp26 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()
Dscalar_not_equals_complex.pass.cpp26 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()
/external/libcxx/test/std/numerics/complex.number/cmplx.over/
Dpow.pass.cpp40 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 …]
/external/eigen/blas/f2c/
Dcomplexdots.c21 complex cdotc_(integer *n, complex *cx, integer in cdotc_()
22 *incx, complex *cy, integer *incy) in cdotc_()
24 complex res; in cdotc_()
25 extern /* Subroutine */ int cdotcw_(integer *, complex *, integer *, in cdotc_()
26 complex *, integer *, complex *); in cdotc_()
37 complex cdotu_(integer *n, complex *cx, integer in cdotu_()
38 *incx, complex *cy, integer *incy) in cdotu_()
40 complex res; in cdotu_()
41 extern /* Subroutine */ int cdotuw_(integer *, complex *, integer *, in cdotu_()
42 complex *, integer *, complex *); in cdotu_()
/external/libcxx/test/std/numerics/complex.number/complex.literals/
Dliterals.pass.cpp22 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 …]
/external/libcxx/test/std/numerics/complex.number/complex.value.ops/
Dconj.pass.cpp21 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()
Dproj.pass.cpp23 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()
Dpolar.pass.cpp23 test(const T& rho, std::complex<T> x) in test()
30 test(const T& rho, const T& theta, std::complex<T> x) in test()
39 test(T(0), std::complex<T>(0, 0)); in test()
40 test(T(1), std::complex<T>(1, 0)); in test()
41 test(T(100), std::complex<T>(100, 0)); in test()
42 test(T(0), T(0), std::complex<T>(0, 0)); in test()
43 test(T(1), T(0), std::complex<T>(1, 0)); in test()
44 test(T(100), T(0), std::complex<T>(100, 0)); in test()
54 std::complex<double> z = std::polar(r, theta); in test_edges()
65 assert(z == std::complex<double>()); in test_edges()
/external/llvm/test/CodeGen/X86/
Dwiden_load-1.ll21 "file complex.c, line 27, bb1":
23 br label %"file complex.c, line 27, bb13"
25 "file complex.c, line 27, bb13": ; preds = %"file complex.c, line 27, bb1"
31 br label %"file complex.c, line 34, bb4"
33 "file complex.c, line 34, bb4": ; preds = %"file complex.c, line 27, bb13"
38 br i1 %r8, label %"file complex.c, line 34, bb7", label %"file complex.c, line 27, bb5"
40 "file complex.c, line 27, bb5": ; preds = %"file complex.c, line 34, bb4"
41 br label %"file complex.c, line 35, bb6"
43 "file complex.c, line 35, bb6": ; preds = %"file complex.c, line 27, bb5"
47 br label %"file complex.c, line 34, bb7"
[all …]
/external/eigen/test/
Dmixingtypes.cpp28 typedef std::complex<float> CF; in mixingtypes()
29 typedef std::complex<double> CD; in mixingtypes()
32 typedef Matrix<std::complex<float>, SizeAtCompileType, SizeAtCompileType> Mat_cf; in mixingtypes()
33 typedef Matrix<std::complex<double>, SizeAtCompileType, SizeAtCompileType> Mat_cd; in mixingtypes()
36 typedef Matrix<std::complex<float>, SizeAtCompileType, 1> Vec_cf; in mixingtypes()
37 typedef Matrix<std::complex<double>, SizeAtCompileType, 1> Vec_cd; in mixingtypes()
42 Mat_cd mcd = mcf.template cast<complex<double> >(); in mixingtypes()
46 Vec_cd vcd = vcf.template cast<complex<double> >(); in mixingtypes()
49 complex<float> scf = internal::random<complex<float> >(); in mixingtypes()
50 complex<double> scd = internal::random<complex<double> >(); in mixingtypes()
[all …]
/external/clang/test/SemaCXX/
Dcxx1y-user-defined-literals.cpp21 template<typename T> struct complex {}; struct
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<long double> cld1 = 1il, cld2 = 2.il, cld3 = 0047il;
/external/libcxx/test/std/numerics/complex.number/complex.transcendentals/
Dtan.pass.cpp23 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()
Datan.pass.cpp23 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()
Dsin.pass.cpp23 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()
Dpow_complex_complex.pass.cpp23 test(const std::complex<T>& a, const std::complex<T>& b, std::complex<T> x) in test()
25 std::complex<T> c = pow(a, b); in test()
34 test(std::complex<T>(2, 3), std::complex<T>(2, 0), std::complex<T>(-5, 12)); in test()
45 std::complex<double> r = pow(x[i], x[j]); in test_edges()
46 std::complex<double> z = exp(x[j] * log(x[i])); in test_edges()
/external/libxml2/result/schemas/
Dderivation-ok-restriction-2-1-1_0_0.err1complex type, attribute use 'barB_1': The 'optional' attribute use is inconsistent with the corre…
2 … error : local complex type, attribute use 'barC_1': Neither a matching attribute use, nor a match…
3 … error : local complex type, attribute use 'barC_2': Neither a matching attribute use, nor a match…
4 … error : local complex type, attribute use 'barD_1': Neither a matching attribute use, nor a match…
5 … error : local complex type, attribute use 'barD_2': Neither a matching attribute use, nor a match…
6 …emas parser error : local complex type: A matching attribute use for the 'required' attribute use …
/external/libcxx/test/std/numerics/complex.number/complex.members/
Dconstruct.pass.cpp22 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()

12345678910>>...20