com.nativelibs4java.opencl.util.fft
Class DoubleFFTPow2

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

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

OpenCL Fast Fourier Transform for array sizes that are powers of two (double 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
DoubleFFTPow2()
           
DoubleFFTPow2(CLContext context)
           
 
Method Summary
protected  CLEvent cooleyTukeyFFT(CLQueue queue, CLBuffer<Double> Y, int N, CLBuffer<Double> twiddleFactors, int inverse, int[] dims, CLEvent... evts)
           
protected  CLEvent cooleyTukeyFFTCopy(CLQueue queue, CLBuffer<Double> inBuf, CLBuffer<Double> outBuf, int length, CLBuffer<Integer> offsetsBuf, boolean inverse, CLEvent... evts)
           
protected  CLEvent cooleyTukeyFFTTwiddleFactors(CLQueue queue, int N, CLBuffer<Double> 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

DoubleFFTPow2

public DoubleFFTPow2(CLContext context)
              throws IOException,
                     CLException
Throws:
IOException
CLException

DoubleFFTPow2

public DoubleFFTPow2()
              throws IOException
Throws:
IOException
Method Detail

cooleyTukeyFFTTwiddleFactors

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

cooleyTukeyFFTCopy

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

cooleyTukeyFFT

protected CLEvent cooleyTukeyFFT(CLQueue queue,
                                 CLBuffer<Double> Y,
                                 int N,
                                 CLBuffer<Double> 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.