Table of Contents

Struct CmplxF

Namespace
NumSharp.Fourier
Assembly
NumSharp.dll

Port of pocketfft's cmplx<T0> for the single-precision engine (T0 == float). Field layout (r then i) is identical to Cmplx and Complex; the driver reinterprets a CmplxF* as an interleaved float* for the real-transform packing (mirroring the double engine). All operators reproduce pocketfft's exact real/imag operation order, in float.

public struct CmplxF
Inherited Members

Constructors

CmplxF(float, float)

public CmplxF(float r_, float i_)

Parameters

r_ float
i_ float

Fields

i

public float i

Field Value

float

r

public float r

Field Value

float

Methods

SpecialMul(bool, in CmplxF, in CmplxF)

pocketfft special_mul<fwd> (twiddle multiply with direction-dependent conjugation), in float. fwd: (ro.r+io.i, io.r-ro.i); bwd: (ro.r-io.i, ro.i+io.r).

public static CmplxF SpecialMul(bool fwd, in CmplxF v1, in CmplxF v2)

Parameters

fwd bool
v1 CmplxF
v2 CmplxF

Returns

CmplxF

Operators

operator +(in CmplxF, in CmplxF)

public static CmplxF operator +(in CmplxF a, in CmplxF b)

Parameters

a CmplxF
b CmplxF

Returns

CmplxF

operator *(in CmplxF, in CmplxF)

public static CmplxF operator *(in CmplxF a, in CmplxF b)

Parameters

a CmplxF
b CmplxF

Returns

CmplxF

operator *(in CmplxF, float)

public static CmplxF operator *(in CmplxF a, float s)

Parameters

a CmplxF
s float

Returns

CmplxF

operator -(in CmplxF, in CmplxF)

public static CmplxF operator -(in CmplxF a, in CmplxF b)

Parameters

a CmplxF
b CmplxF

Returns

CmplxF