std1.0.0-beta-7 SafeC docs

std :: dsp::complex_dsp

Struct std::FComplex

#include <std/dsp/complex_dsp.h> source

struct FComplex {
    Fixed re;
    Fixed im;
}

Fields

Methods

§FComplex operator+(FComplex other) constsource · definition
§FComplex operator-(FComplex other) constsource · definition
§FComplex operator*(FComplex other) constsource · definition
§Fixed abs() constsource · definition
§static FComplex new(Fixed re, Fixed im)source · definition

Quantizes a double-precision Complex to Q8.24 (to_complex converts back). Twiddle factors and other coefficients computed once (at filter/FFT-plan design time) in double precision are quantized to Fixed via these — the same design-time-float / runtime-fixed split std/dsp/biquad.h's cookbook designers use (FBiquad::from), and completely standard practice (even hardware FFT accelerators precompute twiddle tables offline in floating point).

§Complex to_complex() constsource · definition