std1.0.0-beta-7 SafeC docs

std :: dsp::complex_dsp

Struct std::Complex32

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

struct Complex32 {
    float re;
    float im;
}

Single-precision complex: the float counterpart of Complex, with the same layout (re then im). The _f32 DSP functions (fft_f32, stft_forward_f32, ...) take it. Not to be confused with FComplex below, which is fixed point.

Fields

§float resource
§float imsource

Methods

§Complex32 operator+(Complex32 other) constsource · definition
§Complex32 operator-(Complex32 other) constsource · definition
§Complex32 operator*(Complex32 other) constsource · definition
§Complex32 operator/(Complex32 other) constsource · definition
§float abs() constsource · definition
§float arg() constsource · definition
§static Complex32 new(float re, float im)source · definition
§static Complex32 polar(float magnitude, float theta)source · definition

rounds each part to float

§Complex to_complex() constsource · definition

back to double (exact)