本文整理匯總了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();
}