com.nativelibs4java.opencl.util.fft
Class FloatFFTPow2

java.lang.Object
  extended by com.nativelibs4java.opencl.util.Transformer.AbstractTransformer<T,A>
      extended by com.nativelibs4java.opencl.util.fft.FloatFFTPow2
All Implemented Interfaces:
Transformer<Float,float[]>

public class FloatFFTPow2
extends Transformer.AbstractTransformer<T,A>

OpenCL Fast Fourier Transform for array sizes that are powers of two (simple precision floating point numbers)


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.nativelibs4java.opencl.util.Transformer
Transformer.AbstractTransformer<T,A>
 
Field Summary
 
Fields inherited from class com.nativelibs4java.opencl.util.Transformer.AbstractTransformer
context, primitiveClass
 
Constructor Summary
FloatFFTPow2()
           
FloatFFTPow2(CLContext context)
           
 
Method Summary
protected  CLEvent cooleyTukeyFFT(CLQueue queue, CLBuffer<Float> Y, int N, CLBuffer<Float> twiddleFactors, int inverse, int[] dims, CLEvent... evts)
           
protected  CLEvent cooleyTukeyFFTCopy(CLQueue queue, CLBuffer<Float> inBuf, CLBuffer<Float> outBuf, int length, CLBuffer<Integer> offsetsBuf, boolean inverse, CLEvent... evts)
           
protected  CLEvent cooleyTukeyFFTTwiddleFactors(CLQueue queue, int N, CLBuffer<Float> buf, CLEvent... evts)
           
protected  CLBuffer<Integer> getOffsetsBuf(int length)
           
protected  CLBuffer<T> getTwiddleFactorsBuf(CLQueue queue, int N)
           
 CLEvent transform(CLQueue queue, CLBuffer<T> inBuf, CLBuffer<T> outBuf, boolean inverse, CLEvent... eventsToWaitFor)
           
 
Methods inherited from class com.nativelibs4java.opencl.util.Transformer.AbstractTransformer
computeOutputSize, getContext, transform, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatFFTPow2

public FloatFFTPow2(CLContext context)
             throws IOException
Throws:
IOException

FloatFFTPow2

public FloatFFTPow2()
             throws IOException
Throws:
IOException
Method Detail

cooleyTukeyFFTTwiddleFactors

protected CLEvent cooleyTukeyFFTTwiddleFactors(CLQueue queue,
                                               int N,
                                               CLBuffer<Float> buf,
                                               CLEvent... evts)
                                        throws CLException
Throws:
CLException

cooleyTukeyFFTCopy

protected CLEvent cooleyTukeyFFTCopy(CLQueue queue,
                                     CLBuffer<Float> inBuf,
                                     CLBuffer<Float> outBuf,
                                     int length,
                                     CLBuffer<Integer> offsetsBuf,
                                     boolean inverse,
                                     CLEvent... evts)
                              throws CLException
Throws:
CLException

cooleyTukeyFFT

protected CLEvent cooleyTukeyFFT(CLQueue queue,
                                 CLBuffer<Float> Y,
                                 int N,
                                 CLBuffer<Float> twiddleFactors,
                                 int inverse,
                                 int[] dims,
                                 CLEvent... evts)
                          throws CLException
Throws:
CLException

getOffsetsBuf

protected CLBuffer<Integer> getOffsetsBuf(int length)

getTwiddleFactorsBuf

protected CLBuffer<T> getTwiddleFactorsBuf(CLQueue queue,
                                           int N)
                                    throws CLException
Throws:
CLException

transform

public CLEvent transform(CLQueue queue,
                         CLBuffer<T> inBuf,
                         CLBuffer<T> outBuf,
                         boolean inverse,
                         CLEvent... eventsToWaitFor)
                  throws CLException
Throws:
CLException


Copyright © 2009-2012. All Rights Reserved.