2.1.22.2.1.35 fft_hermitian_to_complex


Description

Convert from Hermitian form to general complex

Syntax

int fft_hermitian_to_complex( int iSize, double * vHermitian, d_complex * vComplex )

Parameters

iSize
[input] the size of vHermitian for input
vHermitian
[input] the input data of Hermitian for transform
vComplex
[output] the ouput data after transformation

Return

Return 0 for success.

Examples

EX1

#include <..\OriginLab\fft.h>
void fft_hermitian_to_complex_ex1()
{
    vector vy = {0, 0, 0, 1, 1, 1, 0, 0, 0};
    int nSize = vy.GetSize();
    
    fft_fft_real(nSize, vy);
    vector<complex> vResult(nSize);
    fft_hermitian_to_complex(nSize, vy, vResult);
}

Remark

See Also

Header to Include

fft.h

Reference