Parallel Colt 0.9.4

cern.colt.matrix.tdcomplex.impl
Class DenseLargeDComplexMatrix2D

java.lang.Object
  extended by cern.colt.PersistentObject
      extended by cern.colt.matrix.AbstractMatrix
          extended by cern.colt.matrix.AbstractMatrix2D
              extended by cern.colt.matrix.tdcomplex.DComplexMatrix2D
                  extended by cern.colt.matrix.tdcomplex.impl.WrapperDComplexMatrix2D
                      extended by cern.colt.matrix.tdcomplex.impl.DenseLargeDComplexMatrix2D
All Implemented Interfaces:
Serializable, Cloneable

public class DenseLargeDComplexMatrix2D
extends WrapperDComplexMatrix2D

Dense 2-d matrix holding complex elements.
Implementation:

This data structure allows to store more than 2^31 elements. Internally holds one two-dimensional array, elements[rows][2*columns]. Complex data is represented by 2 double values in sequence, i.e. elements[row][2*column] constitute the real part and elements[row][2*column+1] constitute the imaginary part. Note that this implementation is not synchronized.

Author:
Piotr Wendykier (piotr.wendykier@gmail.com)
See Also:
Serialized Form

Constructor Summary
DenseLargeDComplexMatrix2D(int rows, int columns)
           
 
Method Summary
 double[][] elements()
          Returns the elements of this matrix.
 void fft2()
          Computes the 2D discrete Fourier transform (DFT) of this matrix.
 void fftColumns()
          Computes the discrete Fourier transform (DFT) of each column of this matrix.
 void fftRows()
          Computes the discrete Fourier transform (DFT) of each row of this matrix.
 double[] getQuick(int row, int column)
          Returns the matrix cell value at coordinate [row,column].
 void ifft2(boolean scale)
          Computes the 2D inverse of the discrete Fourier transform (IDFT) of this matrix.
 void ifftColumns(boolean scale)
          Computes the inverse of the discrete Fourier transform (IDFT) of each column of this matrix.
 void ifftRows(boolean scale)
          Computes the inverse of the discrete Fourier transform (IDFT) of each row of this matrix.
 DComplexMatrix2D like(int rows, int columns)
          Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified number of rows and columns.
 DComplexMatrix1D like1D(int size)
          Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.
 void setQuick(int row, int column, double[] value)
          Sets the matrix cell at coordinate [row,column] to the specified value.
 void setQuick(int row, int column, double re, double im)
          Sets the matrix cell at coordinate [row,column] to the specified value.
 
Methods inherited from class cern.colt.matrix.tdcomplex.impl.WrapperDComplexMatrix2D
assign, assign, equals, equals, getImaginaryPart, getRealPart, vectorize, viewColumn, viewColumnFlip, viewDice, viewPart, viewRow, viewRowFlip, viewSelection, viewStrides
 
Methods inherited from class cern.colt.matrix.tdcomplex.DComplexMatrix2D
aggregate, aggregate, assign, assign, assign, assign, assign, assign, assign, assign, assign, assignImaginary, assignReal, cardinality, copy, forEachNonZero, get, getConjugateTranspose, getNonZeros, like, set, set, toArray, toString, toString, viewSelection, zMult, zMult, zMult, zMult, zSum
 
Methods inherited from class cern.colt.matrix.AbstractMatrix2D
checkShape, checkShape, columns, columnStride, index, rows, rowStride, size, toStringShort
 
Methods inherited from class cern.colt.matrix.AbstractMatrix
ensureCapacity, isView, trimToSize
 
Methods inherited from class cern.colt.PersistentObject
clone
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DenseLargeDComplexMatrix2D

public DenseLargeDComplexMatrix2D(int rows,
                                  int columns)
Method Detail

fft2

public void fft2()
Computes the 2D discrete Fourier transform (DFT) of this matrix.

Overrides:
fft2 in class WrapperDComplexMatrix2D

fftColumns

public void fftColumns()
Computes the discrete Fourier transform (DFT) of each column of this matrix.

Overrides:
fftColumns in class WrapperDComplexMatrix2D

fftRows

public void fftRows()
Computes the discrete Fourier transform (DFT) of each row of this matrix.

Overrides:
fftRows in class WrapperDComplexMatrix2D

ifft2

public void ifft2(boolean scale)
Computes the 2D inverse of the discrete Fourier transform (IDFT) of this matrix.

Overrides:
ifft2 in class WrapperDComplexMatrix2D
Parameters:
scale - if true then scaling is performed

ifftColumns

public void ifftColumns(boolean scale)
Computes the inverse of the discrete Fourier transform (IDFT) of each column of this matrix.

Overrides:
ifftColumns in class WrapperDComplexMatrix2D
Parameters:
scale - if true then scaling is performed

ifftRows

public void ifftRows(boolean scale)
Computes the inverse of the discrete Fourier transform (IDFT) of each row of this matrix.

Overrides:
ifftRows in class WrapperDComplexMatrix2D
Parameters:
scale - if true then scaling is performed

getQuick

public double[] getQuick(int row,
                         int column)
Description copied from class: DComplexMatrix2D
Returns the matrix cell value at coordinate [row,column].

Provided with invalid parameters this method may return invalid objects without throwing any exception. You should only use this method when you are absolutely sure that the coordinate is within bounds. Precondition (unchecked): 0 <= column < columns() && 0 <= row < rows().

Overrides:
getQuick in class WrapperDComplexMatrix2D
Parameters:
row - the index of the row-coordinate.
column - the index of the column-coordinate.
Returns:
the value at the specified coordinate.

setQuick

public void setQuick(int row,
                     int column,
                     double[] value)
Description copied from class: DComplexMatrix2D
Sets the matrix cell at coordinate [row,column] to the specified value.

Provided with invalid parameters this method may access illegal indexes without throwing any exception. You should only use this method when you are absolutely sure that the coordinate is within bounds. Precondition (unchecked): 0 <= column < columns() && 0 <= row < rows().

Overrides:
setQuick in class WrapperDComplexMatrix2D
Parameters:
row - the index of the row-coordinate.
column - the index of the column-coordinate.
value - the value to be filled into the specified cell.

setQuick

public void setQuick(int row,
                     int column,
                     double re,
                     double im)
Description copied from class: DComplexMatrix2D
Sets the matrix cell at coordinate [row,column] to the specified value.

Provided with invalid parameters this method may access illegal indexes without throwing any exception. You should only use this method when you are absolutely sure that the coordinate is within bounds. Precondition (unchecked): 0 <= column < columns() && 0 <= row < rows().

Overrides:
setQuick in class WrapperDComplexMatrix2D
Parameters:
row - the index of the row-coordinate.
column - the index of the column-coordinate.
re - the real part of the value to be filled into the specified cell.
im - the imaginary part of the value to be filled into the specified cell.

elements

public double[][] elements()
Description copied from class: DComplexMatrix2D
Returns the elements of this matrix.

Overrides:
elements in class WrapperDComplexMatrix2D
Returns:
the elements

like

public DComplexMatrix2D like(int rows,
                             int columns)
Description copied from class: DComplexMatrix2D
Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified number of rows and columns. For example, if the receiver is an instance of type DenseComplexMatrix2D the new matrix must also be of type DenseComplexMatrix2D. In general, the new matrix should have internal parametrization as similar as possible.

Overrides:
like in class WrapperDComplexMatrix2D
Parameters:
rows - the number of rows the matrix shall have.
columns - the number of columns the matrix shall have.
Returns:
a new empty matrix of the same dynamic type.

like1D

public DComplexMatrix1D like1D(int size)
Description copied from class: DComplexMatrix2D
Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver. For example, if the receiver is an instance of type DenseComplexMatrix2D the new matrix must be of type DenseComplexMatrix1D.

Overrides:
like1D in class WrapperDComplexMatrix2D
Parameters:
size - the number of cells the matrix shall have.
Returns:
a new matrix of the corresponding dynamic type.

Parallel Colt 0.9.4

Jump to the Parallel Colt Homepage