Lines Matching full:complex
10 // <complex>
13 // complex<promote<T, U>::type>
14 // pow(const T& x, const complex<U>& y);
17 // complex<promote<T, U>::type>
18 // pow(const complex<T>& x, const U& y);
21 // complex<promote<T, U>::type>
22 // pow(const complex<T>& x, const complex<U>& y);
24 #include <complex>
40 test(T x, const std::complex<U>& y)
43 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), "");
44 assert(std::pow(x, y) == pow(std::complex<V>(x, 0), std::complex<V>(y)));
49 test(const std::complex<T>& x, U y)
52 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), "");
53 assert(std::pow(x, y) == pow(std::complex<V>(x), std::complex<V>(y, 0)));
58 test(const std::complex<T>& x, const std::complex<U>& y)
61 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), "");
62 assert(std::pow(x, y) == pow(std::complex<V>(x), std::complex<V>(y)));
69 test(T(3), std::complex<U>(4, 5));
70 test(std::complex<U>(3, 4), T(5));
77 test(T(3), std::complex<U>(4, 5));
78 test(std::complex<T>(3, 4), U(5));
79 test(std::complex<T>(3, 4), std::complex<U>(5, 6));