BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
Complex.h File Reference

Defines complex_t, and a few elementary functions. More...

Include dependency graph for Complex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using complex_t = std::complex< double >
 

Functions

complex_t exp_I (complex_t z)
 Returns exp(I*z), where I is the imaginary unit. More...
 
complex_t mul_I (complex_t z)
 Returns product I*z, where I is the imaginary unit. More...
 

Variables

constexpr complex_t I = complex_t(0.0, 1.0)
 

Detailed Description

Defines complex_t, and a few elementary functions.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file Complex.h.

Typedef Documentation

◆ complex_t

using complex_t = std::complex<double>

Definition at line 20 of file Complex.h.

Function Documentation

◆ exp_I()

◆ mul_I()

complex_t mul_I ( complex_t  z)
inline

Returns product I*z, where I is the imaginary unit.

Definition at line 24 of file Complex.h.

25 {
26  return complex_t(-z.imag(), z.real());
27 }

Referenced by MatrixRTCoefficients_v1::calculateTRMatrices(), MatrixRTCoefficients_v1::calculateTRWithoutMagnetization(), Polyhedron::evaluate_centered(), PolyhedralFace::expansion(), PolyhedralFace::ff(), and ripples::profile_yz_triangular().

Variable Documentation

◆ I