|
|
Basic operations on complex numbers.
|
| shz_complex_t | shz_cinitf (float real, float imag) noexcept |
| |
| shz_complex_t | shz_cpolarf (float r, float theta) noexcept |
| |
| bool | shz_cequalf (shz_complex_t lhs, shz_complex_t rhs) noexcept |
| |
| float | shz_crealf (shz_complex_t c) noexcept |
| |
| float | shz_cimagf (shz_complex_t c) noexcept |
| |
|
Arithmetic operations on complex numbers.
|
| shz_complex_t | shz_caddf (shz_complex_t lhs, shz_complex_t rhs) noexcept |
| |
| shz_complex_t | shz_csubf (shz_complex_t lhs, shz_complex_t rhs) noexcept |
| |
| shz_complex_t | shz_cmulf (shz_complex_t lhs, shz_complex_t rhs) noexcept |
| |
| shz_complex_t | shz_cdivf (shz_complex_t lhs, shz_complex_t rhs) noexcept |
| |
| shz_complex_t | shz_cscalef (shz_complex_t c, float v) noexcept |
| |
| shz_complex_t | shz_crecipf (shz_complex_t c) noexcept |
| |
|
Extract or modify complex components.
|
| float | shz_cabsf (shz_complex_t c) noexcept |
| |
| float | shz_inv_cabsf (shz_complex_t c) noexcept |
| |
| float | shz_cnormf (shz_complex_t c) noexcept |
| |
| float | shz_cargf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_conjf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_cprojf (shz_complex_t c) noexcept |
| |
|
Complex transcendental functions.
|
| shz_complex_t | shz_csqrtf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_cpowf (shz_complex_t base, shz_complex_t exp) noexcept |
| |
| shz_complex_t | shz_cexpf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_clogf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_clog10f (shz_complex_t c) noexcept |
| |
|
Complex spherical trigonometric functions.
|
| shz_complex_t | shz_csinf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_ccosf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_ctanf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_ccscf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_csecf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_ccotf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_casinf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_cacosf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_catanf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_cacscf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_casecf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_cacotf (shz_complex_t c) noexcept |
| |
|
Complex hyperbolic trigonometric functions.
|
| shz_complex_t | shz_csinhf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_ccoshf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_ctanhf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_ccschf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_csechf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_ccothf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_casinhf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_cacoshf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_catanhf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_cacschf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_casechf (shz_complex_t c) noexcept |
| |
| shz_complex_t | shz_cacothf (shz_complex_t c) noexcept |
| |
|
Functions for processing complex signals.
|
| void | shz_fft (shz_complex_t *s, size_t size) noexcept |
| |
Complex number API.
This file contains a collection of routines for working with complex (real + imaginary) numbers. The API is mostly modeled after C99's <complex.h>, although it also supports being used from C++ as well.
- Author
- 2026 Falco Girgis
- Copyright
- MIT License
- Todo
- to/from shz_mat2x2_t and XMTRX
- FFT utilities
- inverse FFT
Definition in file shz_complex.h.