#include <complex.h>
Go to the source code of this file.
Define Documentation
#define lv_cmake |
( |
|
r, |
|
|
|
i |
|
) |
| ((r) + _Complex_I*(i)) |
Typedef Documentation
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