Struct CmplxF
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
Fields
i
public float i
Field Value
r
public float r
Field Value
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
Returns
Operators
operator +(in CmplxF, in CmplxF)
public static CmplxF operator +(in CmplxF a, in CmplxF b)
Parameters
Returns
operator *(in CmplxF, in CmplxF)
public static CmplxF operator *(in CmplxF a, in CmplxF b)
Parameters
Returns
operator *(in CmplxF, float)
public static CmplxF operator *(in CmplxF a, float s)
Parameters
Returns
operator -(in CmplxF, in CmplxF)
public static CmplxF operator -(in CmplxF a, in CmplxF b)