| 360 | return fabs(thephase.imag()) < 1e-13 && fabs(thephase.real() - realphase) < 1e-13; |
| 361 | } |
| 362 | static connect_phase connect_phase_from_phase(std::complex<double> thephase) { |
| 363 | return phase_isclose(thephase, 1.0) ? CONNECT_COPY |
| 364 | : phase_isclose(thephase, -1.0) ? CONNECT_NEGATE |
| 365 | : CONNECT_PHASE; |
| 366 | } |
| 367 | |
| 368 | void fields::connect_the_chunks() { |
| 369 | /* For some of the chunks, H==B, and we definitely don't need to |
no test coverage detected