#include <complex.h>
#include <tgmath.h>
Go to the source code of this file.
◆ lv_cimag
#define lv_cimag |
( |
|
x | ) |
(cimag(x)) |
◆ lv_cmake
#define lv_cmake |
( |
|
r, |
|
|
|
i |
|
) |
| ((r) + _Complex_I * (i)) |
◆ lv_conj
#define lv_conj |
( |
|
x | ) |
(conj(x)) |
◆ lv_creal
#define lv_creal |
( |
|
x | ) |
(creal(x)) |
◆ lv_16sc_t
◆ lv_32fc_t
◆ lv_32sc_t
◆ lv_64fc_t
◆ lv_64sc_t
◆ lv_8sc_t
Provide typedefs and operators for all complex types in C and C++.
The typedefs encompass all signed integer and floating point types. Each operator function is intended to work across all data types. Under C++, these operators are defined as inline templates. Under C, these operators are defined as preprocessor macros. The use of macros makes the operators agnostic to the type.
The following operator functions are defined:
- lv_cmake - make a complex type from components
- lv_creal - get the real part of the complex number
- lv_cimag - get the imaginary part of the complex number
- lv_conj - take the conjugate of the complex number