Lines Matching refs:imag
41 if (x[i].real() == 0 && x[i].imag() == 0)
44 assert(r.imag() == 0);
45 assert(std::signbit(x[i].imag()) == std::signbit(r.imag()));
47 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag()))
50 assert(std::isnan(r.imag()));
52 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag()))
55 assert(std::isnan(r.imag()));
57 else if (std::isinf(x[i].real()) && x[i].real() > 0 && x[i].imag() == 0)
61 assert(r.imag() == 0);
62 assert(std::signbit(x[i].imag()) == std::signbit(r.imag()));
64 else if (std::isinf(x[i].real()) && x[i].real() < 0 && std::isinf(x[i].imag()))
67 assert(r.imag() == 0);
69 else if (std::isinf(x[i].real()) && x[i].real() > 0 && std::isinf(x[i].imag()))
72 assert(std::isnan(r.imag()));
74 else if (std::isinf(x[i].real()) && x[i].real() < 0 && std::isnan(x[i].imag()))
77 assert(r.imag() == 0);
79 else if (std::isinf(x[i].real()) && x[i].real() > 0 && std::isnan(x[i].imag()))
82 assert(std::isnan(r.imag()));
84 else if (std::isnan(x[i].real()) && x[i].imag() == 0)
87 assert(r.imag() == 0);
88 assert(std::signbit(x[i].imag()) == std::signbit(r.imag()));
90 else if (std::isnan(x[i].real()) && x[i].imag() != 0)
93 assert(std::isnan(r.imag()));
95 else if (std::isnan(x[i].real()) && std::isnan(x[i].imag()))
98 assert(std::isnan(r.imag()));
100 else if (std::isfinite(x[i].imag()) && std::abs(x[i].imag()) <= 1)
103 assert(std::signbit(r.imag()) == std::signbit(x[i].imag()));