Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

about 2D FFT

$
0
0

 

    Hi,

      Below is a block of codes for using 2D FFT from MKL:

         MKL_LONG      flen1[2]={nffty,nfftx};    
         MKL_LONG      status;
    
         DFTI_DESCRIPTOR_HANDLE      hand1;  
         status=DftiCreateDescriptor(&hand1,DFTI_SINGLE,DFTI_COMPLEX,2,flen1); 
         status=DftiCommitDescriptor(hand1);                 
         status=DftiComputeForward(hand1,tmp); 
         
         tmp is a 2D complex array.
         
         problems:
                               
         tmp in DftiComputeForward: if tmp is given by tmp[ ][ ] the compiling can go through and the block codes works well. If tmp is given by **tmp and alloc memory to it, the compiling can go through but executing is crushed at DftiComputeForward.
            
          So, the problem is in/out parameter in DftiComputeForward has to be hard-coding 2D array and cannot be pointer type?

        Any answer is welcomed. Thank you very much.

 

 

 


Viewing all articles
Browse latest Browse all 2652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>