Skip to content

cplx2real function can only be used with fft4r initialized, and the example creates confusion (DSP-147) #94

Open
@alexbarcelo

Description

@alexbarcelo

dsps_cplx2real_fc32(x1, N >> 1);

I was trying to follow the example with a codebase that uses not fft4r but only fft2r functions (which are showcased in this example, I understand). I was getting segfault errors and after gazillion checks in the documentation I realized that cplx2real documentation says that fft4r needs to be initialized. In the example may be ok because it is showcasing both, but in a regular scenario it is not ok.

Assuming that this is indeed the problem (my code started working once I changed to cplx2reC_fc32 function, but I have not validated the numerical aspect, so I may have more bugs, and I may have misunderstood the documentation once again), the example should use the proper function to showcase properly which functions to use in which scenarios.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions