Class DenseLargeFComplexMatrix2D
- java.lang.Object
-
- cern.colt.PersistentObject
-
- cern.colt.matrix.AbstractMatrix
-
- cern.colt.matrix.AbstractMatrix2D
-
- cern.colt.matrix.tfcomplex.FComplexMatrix2D
-
- cern.colt.matrix.tfcomplex.impl.WrapperFComplexMatrix2D
-
- cern.colt.matrix.tfcomplex.impl.DenseLargeFComplexMatrix2D
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class DenseLargeFComplexMatrix2D extends WrapperFComplexMatrix2D
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 float 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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DenseLargeFComplexMatrix2D(int rows, int columns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description float[][]elements()Returns the elements of this matrix.voidfft2()Computes the 2D discrete Fourier transform (DFT) of this matrix.voidfftColumns()Computes the discrete Fourier transform (DFT) of each column of this matrix.voidfftRows()Computes the discrete Fourier transform (DFT) of each row of this matrix.float[]getQuick(int row, int column)Returns the matrix cell value at coordinate [row,column].voidifft2(boolean scale)Computes the 2D inverse of the discrete Fourier transform (IDFT) of this matrix.voidifftColumns(boolean scale)Computes the inverse of the discrete Fourier transform (IDFT) of each column of this matrix.voidifftRows(boolean scale)Computes the inverse of the discrete Fourier transform (IDFT) of each row of this matrix.FComplexMatrix2Dlike(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.FComplexMatrix1Dlike1D(int size)Construct and returns a new 1-d matrix of the corresponding dynamic type, entirelly independent of the receiver.voidsetQuick(int row, int column, float[] value)Sets the matrix cell at coordinate [row,column] to the specified value.voidsetQuick(int row, int column, float re, float im)Sets the matrix cell at coordinate [row,column] to the specified value.-
Methods inherited from class cern.colt.matrix.tfcomplex.impl.WrapperFComplexMatrix2D
assign, equals, equals, getImaginaryPart, getRealPart, vectorize, viewColumn, viewColumnFlip, viewDice, viewPart, viewRow, viewRowFlip, viewSelection, viewStrides
-
Methods inherited from class cern.colt.matrix.tfcomplex.FComplexMatrix2D
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
-
-
-
-
Constructor Detail
-
DenseLargeFComplexMatrix2D
public DenseLargeFComplexMatrix2D(int rows, int columns)
-
-
Method Detail
-
fft2
public void fft2()
Computes the 2D discrete Fourier transform (DFT) of this matrix.- Overrides:
fft2in classWrapperFComplexMatrix2D
-
fftColumns
public void fftColumns()
Computes the discrete Fourier transform (DFT) of each column of this matrix.- Overrides:
fftColumnsin classWrapperFComplexMatrix2D
-
fftRows
public void fftRows()
Computes the discrete Fourier transform (DFT) of each row of this matrix.- Overrides:
fftRowsin classWrapperFComplexMatrix2D
-
ifft2
public void ifft2(boolean scale)
Computes the 2D inverse of the discrete Fourier transform (IDFT) of this matrix.- Overrides:
ifft2in classWrapperFComplexMatrix2D- 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:
ifftColumnsin classWrapperFComplexMatrix2D- 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:
ifftRowsin classWrapperFComplexMatrix2D- Parameters:
scale- if true then scaling is performed
-
getQuick
public float[] getQuick(int row, int column)Description copied from class:FComplexMatrix2DReturns 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:
getQuickin classWrapperFComplexMatrix2D- 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, float[] value)Description copied from class:FComplexMatrix2DSets 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:
setQuickin classWrapperFComplexMatrix2D- 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, float re, float im)Description copied from class:FComplexMatrix2DSets 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:
setQuickin classWrapperFComplexMatrix2D- 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 float[][] elements()
Description copied from class:FComplexMatrix2DReturns the elements of this matrix.- Overrides:
elementsin classWrapperFComplexMatrix2D- Returns:
- the elements
-
like
public FComplexMatrix2D like(int rows, int columns)
Description copied from class:FComplexMatrix2DConstruct 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:
likein classWrapperFComplexMatrix2D- 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 FComplexMatrix1D like1D(int size)
Description copied from class:FComplexMatrix2DConstruct 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:
like1Din classWrapperFComplexMatrix2D- Parameters:
size- the number of cells the matrix shall have.- Returns:
- a new matrix of the corresponding dynamic type.
-
-
DMelt 3.0 © DataMelt by jWork.ORG