本文整理汇总了Java中org.jtransforms.utils.CommonUtils.setThreadsBeginN_1D_FFT_4Threads方法的典型用法代码示例。如果您正苦于以下问题:Java CommonUtils.setThreadsBeginN_1D_FFT_4Threads方法的具体用法?Java CommonUtils.setThreadsBeginN_1D_FFT_4Threads怎么用?Java CommonUtils.setThreadsBeginN_1D_FFT_4Threads使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jtransforms.utils.CommonUtils
的用法示例。
在下文中一共展示了CommonUtils.setThreadsBeginN_1D_FFT_4Threads方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: FloatFFT_1DTest
import org.jtransforms.utils.CommonUtils; //导入方法依赖的package包/类
/**
* Creates a new instance of this class.
*
* @param n the size of the FFT to be tested
* @param numThreads the number of threads
* @param seed the seed of the random generator
*/
public FloatFFT_1DTest(final int n, final int numThreads, final long seed)
{
this.n = n;
this.fft = new FloatFFT_1D(n);
LargeArray.setMaxSizeOf32bitArray(1);
this.random = new Random(seed);
CommonUtils.setThreadsBeginN_1D_FFT_2Threads(1024);
CommonUtils.setThreadsBeginN_1D_FFT_4Threads(1024);
ConcurrencyUtils.setNumberOfThreads(numThreads);
this.numThreads = ConcurrencyUtils.getNumberOfThreads();
}
示例2: DoubleFFT_1DTest
import org.jtransforms.utils.CommonUtils; //导入方法依赖的package包/类
/**
* Creates a new instance of this class.
*
* @param n
* the size of the FFT to be tested
* @param numThreads
* the number of threads
* @param seed
* the seed of the random generator
*/
public DoubleFFT_1DTest(final int n, final int numThreads, final long seed)
{
this.n = n;
LargeArray.setMaxSizeOf32bitArray(1);
this.fft = new DoubleFFT_1D(n);
this.random = new Random(seed);
CommonUtils.setThreadsBeginN_1D_FFT_2Threads(1024);
CommonUtils.setThreadsBeginN_1D_FFT_4Threads(1024);
ConcurrencyUtils.setNumberOfThreads(numThreads);
this.numThreads = ConcurrencyUtils.getNumberOfThreads();
}
示例3: FloatDST_1DTest
import org.jtransforms.utils.CommonUtils; //导入方法依赖的package包/类
/**
* Creates a new instance of this class.
*
* @param n
* the size of the DST to be tested
* @param numThreads
* the number of threads
* @param seed
* the seed of the random generator
*/
public FloatDST_1DTest(final int n, final int numThreads, final long seed)
{
this.n = n;
LargeArray.setMaxSizeOf32bitArray(1);
this.dst = new FloatDST_1D(n);
this.random = new Random(seed);
CommonUtils.setThreadsBeginN_1D_FFT_2Threads(512);
CommonUtils.setThreadsBeginN_1D_FFT_4Threads(512);
ConcurrencyUtils.setNumberOfThreads(numThreads);
this.numThreads = ConcurrencyUtils.getNumberOfThreads();
}
示例4: DoubleDST_1DTest
import org.jtransforms.utils.CommonUtils; //导入方法依赖的package包/类
/**
* Creates a new instance of this class.
*
* @param n the size of the DST to be tested
* @param numThreads the number of threads
* @param seed the seed of the random generator
*/
public DoubleDST_1DTest(final int n, final int numThreads, final long seed)
{
this.n = n;
LargeArray.setMaxSizeOf32bitArray(1);
this.dst = new DoubleDST_1D(n);
this.random = new Random(seed);
CommonUtils.setThreadsBeginN_1D_FFT_2Threads(1024);
CommonUtils.setThreadsBeginN_1D_FFT_4Threads(1024);
ConcurrencyUtils.setNumberOfThreads(numThreads);
this.numThreads = ConcurrencyUtils.getNumberOfThreads();
}
示例5: FloatDCT_1DTest
import org.jtransforms.utils.CommonUtils; //导入方法依赖的package包/类
/**
* Creates a new instance of this class.
*
* @param n
* the size of the DCT to be tested
* @param numThreads
* the number of threads
* @param seed
* the seed of the random generator
*/
public FloatDCT_1DTest(final int n, final int numThreads, final long seed)
{
this.n = n;
LargeArray.setMaxSizeOf32bitArray(1);
this.dct = new FloatDCT_1D(n);
this.random = new Random(seed);
CommonUtils.setThreadsBeginN_1D_FFT_2Threads(1024);
CommonUtils.setThreadsBeginN_1D_FFT_4Threads(1024);
ConcurrencyUtils.setNumberOfThreads(numThreads);
this.numThreads = ConcurrencyUtils.getNumberOfThreads();
}
示例6: DoubleDCT_1DTest
import org.jtransforms.utils.CommonUtils; //导入方法依赖的package包/类
/**
* Creates a new instance of this class.
*
* @param n the size of the DCT to be tested
* @param numThreads the number of threads
* @param seed the seed of the random generator
*/
public DoubleDCT_1DTest(final int n, final int numThreads, final long seed)
{
this.n = n;
LargeArray.setMaxSizeOf32bitArray(1);
this.dct = new DoubleDCT_1D(n);
this.random = new Random(seed);
CommonUtils.setThreadsBeginN_1D_FFT_2Threads(1024);
CommonUtils.setThreadsBeginN_1D_FFT_4Threads(1024);
ConcurrencyUtils.setNumberOfThreads(numThreads);
this.numThreads = ConcurrencyUtils.getNumberOfThreads();
}
示例7: DoubleDHT_1DTest
import org.jtransforms.utils.CommonUtils; //导入方法依赖的package包/类
/**
* Creates a new instance of this class.
*
* @param n
* the size of the DHT to be tested
* @param numThreads
* the number of threads
* @param seed
* the seed of the random generator
*/
public DoubleDHT_1DTest(final int n, final int numThreads, final long seed)
{
this.n = n;
LargeArray.setMaxSizeOf32bitArray(1);
this.dht = new DoubleDHT_1D(n);
this.random = new Random(seed);
CommonUtils.setThreadsBeginN_1D_FFT_2Threads(1024);
CommonUtils.setThreadsBeginN_1D_FFT_4Threads(1024);
ConcurrencyUtils.setNumberOfThreads(numThreads);
this.numThreads = ConcurrencyUtils.getNumberOfThreads();
}
示例8: FloatDHT_1DTest
import org.jtransforms.utils.CommonUtils; //导入方法依赖的package包/类
/**
* Creates a new instance of this class.
*
* @param n the size of the DHT to be tested
* @param numThreads the number of threads
* @param seed the seed of the random generator
*/
public FloatDHT_1DTest(final int n, final int numThreads, final long seed)
{
this.n = n;
LargeArray.setMaxSizeOf32bitArray(1);
this.dht = new FloatDHT_1D(n);
this.random = new Random(seed);
CommonUtils.setThreadsBeginN_1D_FFT_2Threads(1024);
CommonUtils.setThreadsBeginN_1D_FFT_4Threads(1024);
ConcurrencyUtils.setNumberOfThreads(numThreads);
this.numThreads = ConcurrencyUtils.getNumberOfThreads();
}