Lines Matching refs:complex
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()
70 test(std::complex<U>(3, 4), T(5)); in test()
77 test(T(3), std::complex<U>(4, 5)); in test()
78 test(std::complex<T>(3, 4), U(5)); in test()
79 test(std::complex<T>(3, 4), std::complex<U>(5, 6)); in test()