-
Notifications
You must be signed in to change notification settings - Fork 698
Open
Description
Using fftw3 in a C++ application requires thunking layers because the array data type R C[2] is not compatible to std::complex at language level. They are guaranteed to be binary compatible, but C++ does not even allow casts between arrays and classes.
So pointer conversions are required at several places. This makes the code poorly readable, error prone and may even prevent some compiler optimizations due to the required reinterpret casts.
It should be possible to force fftw3.h to use std::complex similar to the support for C99 _Complex.
Metadata
Metadata
Assignees
Labels
No labels