Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
6956 Discussions

newbi - how to use DftiComputeForward

Erich_Zwyssig
Beginner
284 Views
Hija all

status = DftiComputeForward( desc_handle, x_in, y_out );

Can anybody tell me how I can find out what x_in and y_out are?


Thanks for your help

Erich
0 Kudos
4 Replies
Gennady_F_Intel
Moderator
284 Views
Hi Erich,
first of all, please look at the examples MKL DFTI examples. you can find them in \examples\dftc\source\ directory.
--Gennady
0 Kudos
barragan_villanueva_
Valued Contributor I
284 Views
Hi Erich,

For out-of-place transforms x_in is for input data and y_out for output.
But for in-place transforms the only data pointer is for input and output.
Also, in case of split-complex data there should be used two separated pointers: for real and imagimary parts. Please take a look at MKL User Guide for more details.
0 Kudos
barragan_villanueva_
Valued Contributor I
284 Views

Sorry, here is fragment from MKL Reference Manual (not User Guide as I mentioned before):

ComputeForward

Computes the forward FFT.

Syntax

Fortran:

status = DftiComputeForward( desc_handle, x_inout )

status = DftiComputeForward( desc_handle, x_in, y_out )

status = DftiComputeForward( desc_handle, xre_inout, xim_inout )

status = DftiComputeForward( desc_handle, xre_in, xim_in, yre_out, yim_out )

C:

status = DftiComputeForward( desc_handle, x_inout );

status = DftiComputeForward( desc_handle, x_in, y_out );

status = DftiComputeForward( desc_handle, xre_inout, xim_inout );

status = DftiComputeForward( desc_handle, xre_in, xim_in, yre_out, yim_out );

0 Kudos
Erich_Zwyssig
Beginner
284 Views
Hi Gennady, (all)

Thanks for your great help and pointing me to the examples directory. I should be able to sort it out now.


Erich
0 Kudos
Reply