|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
#include <cmath>#include <complex>

Go to the source code of this file.
Classes | |
| struct | gsl_complex |
| Complex number stored as \((\Re, \Im)\). More... | |
Macros | |
| #define | GSL_REAL(z) ((z).dat[0]) |
Access real part of a gsl_complex. | |
| #define | GSL_IMAG(z) ((z).dat[1]) |
Access imaginary part of a gsl_complex. | |
Functions | |
| gsl_complex | gsl_complex_rect (double x, double y) |
| Construct \(z = x + i y\). | |
| gsl_complex | gsl_complex_polar (double r, double theta) |
| Construct \(z = r e^{i\theta}\). | |
| double | gsl_complex_arg (gsl_complex z) |
| Argument (phase) \(\arg(z)\). | |
| double | gsl_complex_abs (gsl_complex z) |
| Magnitude \(|z|\). | |
| double | gsl_complex_abs2 (gsl_complex z) |
| Squared magnitude \(|z|^2\). | |
| gsl_complex | gsl_complex_add (gsl_complex a, gsl_complex b) |
| Sum \(a + b\). | |
| gsl_complex | gsl_complex_sub (gsl_complex a, gsl_complex b) |
| Difference \(a - b\). | |
| gsl_complex | gsl_complex_mul (gsl_complex a, gsl_complex b) |
| Product \(a \cdot b\). | |
| gsl_complex | gsl_complex_div (gsl_complex a, gsl_complex b) |
| Quotient \(a / b\). | |
| gsl_complex | gsl_complex_add_real (gsl_complex a, double x) |
| Add real scalar \(a + x\). | |
| gsl_complex | gsl_complex_sub_real (gsl_complex a, double x) |
| Subtract real scalar \(a - x\). | |
| gsl_complex | gsl_complex_mul_real (gsl_complex a, double x) |
| Multiply by real scalar \(a \cdot x\). | |
| gsl_complex | gsl_complex_div_real (gsl_complex a, double x) |
| Divide by real scalar \(a / x\). | |
| gsl_complex | gsl_complex_conjugate (gsl_complex a) |
| Complex conjugate \(\overline{a}\). | |
| gsl_complex | gsl_complex_inverse (gsl_complex a) |
| Multiplicative inverse \(1/a\). | |
| gsl_complex | gsl_complex_negative (gsl_complex a) |
| Negation \(-a\). | |
| gsl_complex | gsl_complex_sqrt (gsl_complex a) |
| Complex square root \(\sqrt{a}\). | |
| gsl_complex | gsl_complex_exp (gsl_complex a) |
| Complex exponential \(e^{a}\). | |
| gsl_complex | gsl_complex_log (gsl_complex a) |
| Complex natural logarithm \(\log(a)\). | |
| gsl_complex | gsl_complex_sin (gsl_complex a) |
| Complex sine \(\sin(a)\). | |
| gsl_complex | gsl_complex_cos (gsl_complex a) |
| Complex cosine \(\cos(a)\). | |
| gsl_complex | gsl_complex_pow (gsl_complex a, gsl_complex b) |
| Complex power \(a^b\). | |
| gsl_complex | gsl_complex_tanh (gsl_complex a) |
| Complex hyperbolic tangent \(\tanh(a)\). | |
| #define GSL_IMAG | ( | z | ) | ((z).dat[1]) |
Access imaginary part of a gsl_complex.
Definition at line 43 of file GSLComplex.h.
| #define GSL_REAL | ( | z | ) | ((z).dat[0]) |
Access real part of a gsl_complex.
Definition at line 41 of file GSLComplex.h.
|
inline |
Magnitude \(|z|\).
| z | Input: complex value. |
Definition at line 67 of file GSLComplex.h.
Referenced by gsl_linalg_complex_LU_decomp(), and TEST_F().
|
inline |
Squared magnitude \(|z|^2\).
| z | Input: complex value. |
Definition at line 72 of file GSLComplex.h.
References gsl_complex::dat.
|
inline |
Sum \(a + b\).
| a | Input: first operand. |
| b | Input: second operand. |
Definition at line 79 of file GSLComplex.h.
References gsl_complex::dat.
Referenced by gsl_blas_zgemm(), gsl_blas_zgemv(), gsl_linalg_complex_LU_invert(), gsl_matrix_complex_add(), gsl_vector_complex_add(), interpolation::operator+(), interpolation::operator+=(), and TEST_F().
|
inline |
Add real scalar \(a + x\).
| a | Input: complex operand. |
| x | Input: real scalar. |
Definition at line 116 of file GSLComplex.h.
References gsl_complex::dat.
Referenced by interpolation::operator+(), interpolation::operator+(), and interpolation::operator+=().
|
inline |
Argument (phase) \(\arg(z)\).
| z | Input: complex value. |
Definition at line 62 of file GSLComplex.h.
Referenced by TEST_F().
|
inline |
Complex conjugate \(\overline{a}\).
| a | Input: complex operand. |
Definition at line 151 of file GSLComplex.h.
References gsl_complex::dat.
Referenced by gsl_blas_zgemm(), gsl_blas_zgemv(), and TEST_F().
|
inline |
Complex cosine \(\cos(a)\).
| a | Input: complex operand. |
Definition at line 208 of file GSLComplex.h.
|
inline |
Quotient \(a / b\).
| a | Input: numerator. |
| b | Input: denominator. |
Definition at line 106 of file GSLComplex.h.
Referenced by gsl_linalg_complex_LU_decomp(), gsl_linalg_complex_LU_invert(), interpolation::operator/(), interpolation::operator/(), interpolation::operator/=(), and TEST_F().
|
inline |
Divide by real scalar \(a / x\).
| a | Input: complex operand. |
| x | Input: real scalar. |
Definition at line 143 of file GSLComplex.h.
References gsl_complex::dat.
Referenced by interpolation::operator/(), and interpolation::operator/=().
|
inline |
Complex exponential \(e^{a}\).
| a | Input: complex operand. |
Definition at line 181 of file GSLComplex.h.
Referenced by TEST_F().
|
inline |
Multiplicative inverse \(1/a\).
| a | Input: complex operand. |
Definition at line 157 of file GSLComplex.h.
|
inline |
Complex natural logarithm \(\log(a)\).
| a | Input: complex operand. |
Definition at line 190 of file GSLComplex.h.
Referenced by TEST_F().
|
inline |
Product \(a \cdot b\).
| a | Input: first operand. |
| b | Input: second operand. |
Definition at line 97 of file GSLComplex.h.
Referenced by gsl_blas_zgemm(), gsl_blas_zgemv(), gsl_linalg_complex_LU_decomp(), gsl_linalg_complex_LU_det(), gsl_linalg_complex_LU_invert(), gsl_matrix_complex_scale(), gsl_vector_complex_scale(), interpolation::operator*(), interpolation::operator*=(), and TEST_F().
|
inline |
Multiply by real scalar \(a \cdot x\).
| a | Input: complex operand. |
| x | Input: real scalar. |
Definition at line 134 of file GSLComplex.h.
References gsl_complex::dat.
Referenced by interpolation::operator*(), interpolation::operator*(), and interpolation::operator*=().
|
inline |
Negation \(-a\).
| a | Input: complex operand. |
Definition at line 166 of file GSLComplex.h.
References gsl_complex::dat.
|
inline |
Construct \(z = r e^{i\theta}\).
| r | Input: magnitude. |
| theta | Input: phase angle. |
Definition at line 55 of file GSLComplex.h.
Referenced by TEST_F().
|
inline |
Complex power \(a^b\).
| a | Input: base. |
| b | Input: exponent. |
Definition at line 218 of file GSLComplex.h.
|
inline |
Construct \(z = x + i y\).
| x | Input: real part. |
| y | Input: imaginary part. |
Definition at line 49 of file GSLComplex.h.
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
inline |
Complex sine \(\sin(a)\).
| a | Input: complex operand. |
Definition at line 199 of file GSLComplex.h.
|
inline |
Complex square root \(\sqrt{a}\).
| a | Input: complex operand. |
Definition at line 172 of file GSLComplex.h.
|
inline |
Difference \(a - b\).
| a | Input: first operand. |
| b | Input: second operand. |
Definition at line 88 of file GSLComplex.h.
References gsl_complex::dat.
Referenced by gsl_eigen_nonsymmv(), gsl_linalg_complex_LU_decomp(), gsl_linalg_complex_LU_invert(), interpolation::operator-(), interpolation::operator-=(), and TEST_F().
|
inline |
Subtract real scalar \(a - x\).
| a | Input: complex operand. |
| x | Input: real scalar. |
Definition at line 125 of file GSLComplex.h.
References gsl_complex::dat.
Referenced by interpolation::operator-(), interpolation::operator-(), and interpolation::operator-=().
|
inline |
Complex hyperbolic tangent \(\tanh(a)\).
| a | Input: complex operand. |
Definition at line 227 of file GSLComplex.h.
Referenced by TEST_F().