當前位置: 首頁>>代碼示例>>Java>>正文


Java CommonUtils.setThreadsBeginN_1D_FFT_4Threads方法代碼示例

本文整理匯總了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();
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:19,代碼來源:FloatFFT_1DTest.java

示例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();
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:22,代碼來源:DoubleFFT_1DTest.java

示例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();
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:22,代碼來源:FloatDST_1DTest.java

示例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();
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:19,代碼來源:DoubleDST_1DTest.java

示例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();
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:22,代碼來源:FloatDCT_1DTest.java

示例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();
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:19,代碼來源:DoubleDCT_1DTest.java

示例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();
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:22,代碼來源:DoubleDHT_1DTest.java

示例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();
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:19,代碼來源:FloatDHT_1DTest.java


注:本文中的org.jtransforms.utils.CommonUtils.setThreadsBeginN_1D_FFT_4Threads方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。