15 #ifndef BORNAGAIN_BASE_TYPES_COMPLEX_H
16 #define BORNAGAIN_BASE_TYPES_COMPLEX_H
20 using complex_t = std::complex<double>;
21 constexpr complex_t I = complex_t(0.0, 1.0);
24 inline complex_t
mul_I(complex_t z)
26 return complex_t(-z.imag(), z.real());
30 inline complex_t
exp_I(complex_t z)
32 return std::exp(complex_t(-z.imag(), z.real()));
complex_t mul_I(complex_t z)
Returns product I*z, where I is the imaginary unit.
complex_t exp_I(complex_t z)
Returns exp(I*z), where I is the imaginary unit.