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


Java CommonUtils.setUseLargeArrays方法代碼示例

本文整理匯總了Java中org.jtransforms.utils.CommonUtils.setUseLargeArrays方法的典型用法代碼示例。如果您正苦於以下問題:Java CommonUtils.setUseLargeArrays方法的具體用法?Java CommonUtils.setUseLargeArrays怎麽用?Java CommonUtils.setUseLargeArrays使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.jtransforms.utils.CommonUtils的用法示例。


在下文中一共展示了CommonUtils.setUseLargeArrays方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: FloatFFT_2D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of FloatFFT_2D.
 *  
 * @param rows    number of rows
 * @param columns number of columns
 */
public FloatFFT_2D(long rows, long columns)
{
    if (rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("rows and columns must be greater than 1");
    }

    this.rows = (int) rows;
    this.columns = (int) columns;
    this.rowsl = rows;
    this.columnsl = columns;
    if (rows * columns >= CommonUtils.getThreadsBeginN_2D()) {
        this.useThreads = true;
    }
    if (CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(2 * rows * columns > LargeArray.getMaxSizeOf32bitArray());
    fftRows = new FloatFFT_1D(rows);
    if (rows == columns) {
        fftColumns = fftRows;
    } else {
        fftColumns = new FloatFFT_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:31,代碼來源:FloatFFT_2D.java

示例2: DoubleFFT_2D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of DoubleFFT_2D.
 *  
 * @param rows
 *                number of rows
 * @param columns
 *                number of columns
 */
public DoubleFFT_2D(long rows, long columns)
{
    if (rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("rows and columns must be greater than 1");
    }

    this.rows = (int) rows;
    this.columns = (int) columns;
    this.rowsl = rows;
    this.columnsl = columns;
    if (rows * columns >= CommonUtils.getThreadsBeginN_2D()) {
        this.useThreads = true;
    }
    if (CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(2 * rows * columns > LargeArray.getMaxSizeOf32bitArray());
    fftRows = new DoubleFFT_1D(rows);
    if (rows == columns) {
        fftColumns = fftRows;
    } else {
        fftColumns = new DoubleFFT_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:33,代碼來源:DoubleFFT_2D.java

示例3: DoubleDST_2D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of DoubleDST_2D.
 *  
 * @param rows    number of rows
 * @param columns number of columns
 */
public DoubleDST_2D(long rows, long columns)
{
    if (rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("rows and columns must be greater than 1");
    }
    this.rows = (int) rows;
    this.columns = (int) columns;
    this.rowsl = rows;
    this.columnsl = columns;
    if (rows * columns >= CommonUtils.getThreadsBeginN_2D()) {
        useThreads = true;
    }
    if (CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(rows * columns > LargeArray.getMaxSizeOf32bitArray());
    dstRows = new DoubleDST_1D(rows);
    if (rows == columns) {
        dstColumns = dstRows;
    } else {
        dstColumns = new DoubleDST_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:30,代碼來源:DoubleDST_2D.java

示例4: FloatDST_2D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of FloatDST_2D.
 *  
 * @param rows    number of rows
 * @param columns number of columns
 */
public FloatDST_2D(long rows, long columns)
{
    if (rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("rows and columns must be greater than 1");
    }
    this.rows = (int) rows;
    this.columns = (int) columns;
    this.rowsl = rows;
    this.columnsl = columns;
    if (rows * columns >= CommonUtils.getThreadsBeginN_2D()) {
        useThreads = true;
    }
    if (CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(rows * columns > LargeArray.getMaxSizeOf32bitArray());
    dstRows = new FloatDST_1D(rows);
    if (rows == columns) {
        dstColumns = dstRows;
    } else {
        dstColumns = new FloatDST_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:30,代碼來源:FloatDST_2D.java

示例5: DoubleDCT_2D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of DoubleDCT_2D.
 *  
 * @param rows    number of rows
 * @param columns number of columns
 */
public DoubleDCT_2D(long rows, long columns)
{
    if (rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("rows and columns must be greater than 1");
    }
    this.rows = (int) rows;
    this.columns = (int) columns;
    this.rowsl = rows;
    this.columnsl = columns;
    if (rows * columns >= CommonUtils.getThreadsBeginN_2D()) {
        this.useThreads = true;
    }
    if (CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(rows * columns > LargeArray.getMaxSizeOf32bitArray());
    dctRows = new DoubleDCT_1D(rows);
    if (rows == columns) {
        dctColumns = dctRows;
    } else {
        dctColumns = new DoubleDCT_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:30,代碼來源:DoubleDCT_2D.java

示例6: FloatDCT_2D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of FloatDCT_2D.
 *  
 * @param rows    number of rows
 * @param columns number of columns
 */
public FloatDCT_2D(long rows, long columns)
{
    if (rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("rows and columns must be greater than 1");
    }
    this.rows = (int) rows;
    this.columns = (int) columns;
    this.rowsl = rows;
    this.columnsl = columns;
    if (rows * columns >= CommonUtils.getThreadsBeginN_2D()) {
        this.useThreads = true;
    }
    if (CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(rows * columns > LargeArray.getMaxSizeOf32bitArray());
    dctRows = new FloatDCT_1D(rows);
    if (rows == columns) {
        dctColumns = dctRows;
    } else {
        dctColumns = new FloatDCT_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:30,代碼來源:FloatDCT_2D.java

示例7: DoubleDHT_2D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of DoubleDHT_2D.
 *  
 * @param rows    number of rows
 * @param columns number of columns
 */
public DoubleDHT_2D(long rows, long columns)
{
    if (rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("rows and columns must be greater than 1");
    }
    this.rows = (int) rows;
    this.columns = (int) columns;
    this.rowsl = rows;
    this.columnsl = columns;
    if (rows * columns >= CommonUtils.getThreadsBeginN_2D()) {
        this.useThreads = true;
    }
    if (CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(rows * columns > LargeArray.getMaxSizeOf32bitArray());
    dhtRows = new DoubleDHT_1D(rows);
    if (rows == columns) {
        dhtColumns = dhtRows;
    } else {
        dhtColumns = new DoubleDHT_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:30,代碼來源:DoubleDHT_2D.java

示例8: FloatDHT_2D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of FloatDHT_2D.
 *  
 * @param rows    number of rows
 * @param columns number of columns
 */
public FloatDHT_2D(long rows, long columns)
{
    if (rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("rows and columns must be greater than 1");
    }
    this.rows = (int) rows;
    this.columns = (int) columns;
    this.rowsl = rows;
    this.columnsl = columns;
    if (rows * columns >= CommonUtils.getThreadsBeginN_2D()) {
        this.useThreads = true;
    }
    if (CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(rows * columns > LargeArray.getMaxSizeOf32bitArray());
    dhtRows = new FloatDHT_1D(rows);
    if (rows == columns) {
        dhtColumns = dhtRows;
    } else {
        dhtColumns = new FloatDHT_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:30,代碼來源:FloatDHT_2D.java

示例9: DoubleFFT_3D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of DoubleFFT_3D.
 *  
 * @param slices  number of slices
 * @param rows    number of rows
 * @param columns number of columns
 *  
 */
public DoubleFFT_3D(long slices, long rows, long columns)
{
    if (slices <= 1 || rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("slices, rows and columns must be greater than 1");
    }
    this.slices = (int) slices;
    this.rows = (int) rows;
    this.columns = (int) columns;
    this.slicesl = slices;
    this.rowsl = rows;
    this.columnsl = columns;
    this.sliceStride = (int) (rows * columns);
    this.rowStride = (int) columns;
    this.sliceStridel = rows * columns;
    this.rowStridel = columns;

    if (slices * rows * columns >= CommonUtils.getThreadsBeginN_3D()) {
        this.useThreads = true;
    }
    if (CommonUtils.isPowerOf2(slices) && CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(2 * slices * rows * columns > LargeArray.getMaxSizeOf32bitArray());
    fftSlices = new DoubleFFT_1D(slices);
    if (slices == rows) {
        fftRows = fftSlices;
    } else {
        fftRows = new DoubleFFT_1D(rows);
    }
    if (slices == columns) {
        fftColumns = fftSlices;
    } else if (rows == columns) {
        fftColumns = fftRows;
    } else {
        fftColumns = new DoubleFFT_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:46,代碼來源:DoubleFFT_3D.java

示例10: FloatFFT_3D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of FloatFFT_3D.
 *  
 * @param slices  number of slices
 * @param rows    number of rows
 * @param columns number of columns
 *  
 */
public FloatFFT_3D(long slices, long rows, long columns)
{
    if (slices <= 1 || rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("slices, rows and columns must be greater than 1");
    }
    this.slices = (int) slices;
    this.rows = (int) rows;
    this.columns = (int) columns;
    this.slicesl = slices;
    this.rowsl = rows;
    this.columnsl = columns;
    this.sliceStride = (int) (rows * columns);
    this.rowStride = (int) columns;
    this.sliceStridel = rows * columns;
    this.rowStridel = columns;

    if (slices * rows * columns >= CommonUtils.getThreadsBeginN_3D()) {
        this.useThreads = true;
    }
    if (CommonUtils.isPowerOf2(slices) && CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(2 * slices * rows * columns > LargeArray.getMaxSizeOf32bitArray());
    fftSlices = new FloatFFT_1D(slices);
    if (slices == rows) {
        fftRows = fftSlices;
    } else {
        fftRows = new FloatFFT_1D(rows);
    }
    if (slices == columns) {
        fftColumns = fftSlices;
    } else if (rows == columns) {
        fftColumns = fftRows;
    } else {
        fftColumns = new FloatFFT_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:46,代碼來源:FloatFFT_3D.java

示例11: FloatDST_3D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of FloatDST_3D.
 *  
 * @param slices  number of slices
 * @param rows    number of rows
 * @param columns number of columns
 */
public FloatDST_3D(long slices, long rows, long columns)
{
    if (slices <= 1 || rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("slices, rows and columns must be greater than 1");
    }
    this.slices = (int) slices;
    this.rows = (int) rows;
    this.columns = (int) columns;
    this.slicesl = slices;
    this.rowsl = rows;
    this.columnsl = columns;
    this.sliceStride = (int) (rows * columns);
    this.rowStride = (int) columns;
    this.sliceStridel = rows * columns;
    this.rowStridel = columns;
    if (slices * rows * columns >= CommonUtils.getThreadsBeginN_3D()) {
        this.useThreads = true;
    }
    if (CommonUtils.isPowerOf2(slices) && CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(slices * rows * columns > LargeArray.getMaxSizeOf32bitArray());
    dstSlices = new FloatDST_1D(slices);
    if (slices == rows) {
        dstRows = dstSlices;
    } else {
        dstRows = new FloatDST_1D(rows);
    }
    if (slices == columns) {
        dstColumns = dstSlices;
    } else if (rows == columns) {
        dstColumns = dstRows;
    } else {
        dstColumns = new FloatDST_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:44,代碼來源:FloatDST_3D.java

示例12: DoubleDST_3D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of DoubleDST_3D.
 *  
 * @param slices  number of slices
 * @param rows    number of rows
 * @param columns number of columns
 */
public DoubleDST_3D(long slices, long rows, long columns)
{
    if (slices <= 1 || rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("slices, rows and columns must be greater than 1");
    }
    this.slices = (int) slices;
    this.rows = (int) rows;
    this.columns = (int) columns;
    this.slicesl = slices;
    this.rowsl = rows;
    this.columnsl = columns;
    this.sliceStride = (int) (rows * columns);
    this.rowStride = (int) columns;
    this.sliceStridel = rows * columns;
    this.rowStridel = columns;
    if (slices * rows * columns >= CommonUtils.getThreadsBeginN_3D()) {
        this.useThreads = true;
    }
    if (CommonUtils.isPowerOf2(slices) && CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(slices * rows * columns > LargeArray.getMaxSizeOf32bitArray());
    dstSlices = new DoubleDST_1D(slices);
    if (slices == rows) {
        dstRows = dstSlices;
    } else {
        dstRows = new DoubleDST_1D(rows);
    }
    if (slices == columns) {
        dstColumns = dstSlices;
    } else if (rows == columns) {
        dstColumns = dstRows;
    } else {
        dstColumns = new DoubleDST_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:44,代碼來源:DoubleDST_3D.java

示例13: DoubleDCT_3D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of DoubleDCT_3D.
 *  
 * @param slices  number of slices
 * @param rows    number of rows
 * @param columns number of columns
 */
public DoubleDCT_3D(long slices, long rows, long columns)
{
    if (slices <= 1 || rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("slices, rows and columns must be greater than 1");
    }
    this.slices = (int) slices;
    this.rows = (int) rows;
    this.columns = (int) columns;
    this.slicesl = slices;
    this.rowsl = rows;
    this.columnsl = columns;
    this.sliceStride = (int) (rows * columns);
    this.rowStride = (int) columns;
    this.sliceStridel = rows * columns;
    this.rowStridel = columns;
    if (slices * rows * columns >= CommonUtils.getThreadsBeginN_3D()) {
        this.useThreads = true;
    }
    if (CommonUtils.isPowerOf2(slices) && CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(slices * rows * columns > LargeArray.getMaxSizeOf32bitArray());
    dctSlices = new DoubleDCT_1D(slices);
    if (slices == rows) {
        dctRows = dctSlices;
    } else {
        dctRows = new DoubleDCT_1D(rows);
    }
    if (slices == columns) {
        dctColumns = dctSlices;
    } else if (rows == columns) {
        dctColumns = dctRows;
    } else {
        dctColumns = new DoubleDCT_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:44,代碼來源:DoubleDCT_3D.java

示例14: FloatDCT_3D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of FloatDCT_3D.
 *  
 * @param slices  number of slices
 * @param rows    number of rows
 * @param columns number of columns
 */
public FloatDCT_3D(long slices, long rows, long columns)
{
    if (slices <= 1 || rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("slices, rows and columns must be greater than 1");
    }
    this.slices = (int) slices;
    this.rows = (int) rows;
    this.columns = (int) columns;
    this.slicesl = slices;
    this.rowsl = rows;
    this.columnsl = columns;
    this.sliceStride = (int) (rows * columns);
    this.rowStride = (int) columns;
    this.sliceStridel = rows * columns;
    this.rowStridel = columns;
    if (slices * rows * columns >= CommonUtils.getThreadsBeginN_3D()) {
        this.useThreads = true;
    }
    if (CommonUtils.isPowerOf2(slices) && CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(slices * rows * columns > LargeArray.getMaxSizeOf32bitArray());
    dctSlices = new FloatDCT_1D(slices);
    if (slices == rows) {
        dctRows = dctSlices;
    } else {
        dctRows = new FloatDCT_1D(rows);
    }
    if (slices == columns) {
        dctColumns = dctSlices;
    } else if (rows == columns) {
        dctColumns = dctRows;
    } else {
        dctColumns = new FloatDCT_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:44,代碼來源:FloatDCT_3D.java

示例15: DoubleDHT_3D

import org.jtransforms.utils.CommonUtils; //導入方法依賴的package包/類
/**
 * Creates new instance of DoubleDHT_3D.
 *  
 * @param slices  number of slices
 * @param rows    number of rows
 * @param columns number of columns
 */
public DoubleDHT_3D(long slices, long rows, long columns)
{
    if (slices <= 1 || rows <= 1 || columns <= 1) {
        throw new IllegalArgumentException("slices, rows and columns must be greater than 1");
    }
    this.slices = (int) slices;
    this.rows = (int) rows;
    this.columns = (int) columns;
    this.slicesl = slices;
    this.rowsl = rows;
    this.columnsl = columns;
    this.sliceStride = (int) (rows * columns);
    this.rowStride = (int) columns;
    this.sliceStridel = rows * columns;
    this.rowStridel = columns;
    if (slices * rows * columns >= CommonUtils.getThreadsBeginN_3D()) {
        this.useThreads = true;
    }
    if (CommonUtils.isPowerOf2(slices) && CommonUtils.isPowerOf2(rows) && CommonUtils.isPowerOf2(columns)) {
        isPowerOfTwo = true;
    }
    CommonUtils.setUseLargeArrays(slices * rows * columns > LargeArray.getMaxSizeOf32bitArray());
    dhtSlices = new DoubleDHT_1D(slices);
    if (slices == rows) {
        dhtRows = dhtSlices;
    } else {
        dhtRows = new DoubleDHT_1D(rows);
    }
    if (slices == columns) {
        dhtColumns = dhtSlices;
    } else if (rows == columns) {
        dhtColumns = dhtRows;
    } else {
        dhtColumns = new DoubleDHT_1D(columns);
    }
}
 
開發者ID:wendykierp,項目名稱:JTransforms,代碼行數:44,代碼來源:DoubleDHT_3D.java


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