public class WrapperFComplexMatrix2D extends FComplexMatrix2D
Constructor and Description |
---|
WrapperFComplexMatrix2D(FComplexMatrix2D newContent) |
Modifier and Type | Method and Description |
---|---|
FComplexMatrix2D |
assign(float[] values)
Sets all cells to the state specified by values.
|
Object |
elements()
Returns the elements of this matrix.
|
boolean |
equals(float[] value)
Returns whether all cells are equal to the given value.
|
boolean |
equals(Object obj)
Compares this object against the specified object.
|
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.
|
FloatMatrix2D |
getImaginaryPart()
Returns the imaginary part of this matrix
|
float[] |
getQuick(int row,
int column)
Returns the matrix cell value at coordinate [row,column].
|
FloatMatrix2D |
getRealPart()
Returns the real part of this matrix
|
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 (DFT) of each
column of this matrix.
|
void |
ifftRows(boolean scale)
Computes the inverse of the discrete Fourier transform (DFT) of each row
of this matrix.
|
FComplexMatrix2D |
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.
|
FComplexMatrix1D |
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,
float[] value)
Sets the matrix cell at coordinate [row,column] to the specified
value.
|
void |
setQuick(int row,
int column,
float re,
float im)
Sets the matrix cell at coordinate [row,column] to the specified
value.
|
FComplexMatrix1D |
vectorize()
Returns a vector obtained by stacking the columns of this matrix on top
of one another.
|
FComplexMatrix1D |
viewColumn(int column)
Constructs and returns a new slice view representing the rows of
the given column.
|
FComplexMatrix2D |
viewColumnFlip()
Constructs and returns a new flip view along the column axis.
|
FComplexMatrix2D |
viewDice()
Constructs and returns a new dice (transposition) view; Swaps
axes; example: 3 x 4 matrix --> 4 x 3 matrix.
|
FComplexMatrix2D |
viewPart(int row,
int column,
int height,
int width)
Constructs and returns a new sub-range view that is a
height x width sub matrix starting at [row,column].
|
FComplexMatrix1D |
viewRow(int row)
Constructs and returns a new slice view representing the columns
of the given row.
|
FComplexMatrix2D |
viewRowFlip()
Constructs and returns a new flip view along the row axis.
|
FComplexMatrix2D |
viewSelection(int[] rowIndexes,
int[] columnIndexes)
Constructs and returns a new selection view that is a matrix
holding the indicated cells.
|
FComplexMatrix2D |
viewStrides(int _rowStride,
int _columnStride)
Constructs and returns a new stride view which is a sub matrix
consisting of every i-th cell.
|
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
checkShape, checkShape, columns, columnStride, index, rows, rowStride, size, toStringShort
ensureCapacity, isView, trimToSize
clone
public WrapperFComplexMatrix2D(FComplexMatrix2D newContent)
public FComplexMatrix2D assign(float[] values)
FComplexMatrix2D
The values are copied. So subsequent changes in values are not reflected in the matrix, and vice-versa.
assign
in class FComplexMatrix2D
values
- the values to be filled into the cells.public boolean equals(float[] value)
FComplexMatrix2D
equals
in class FComplexMatrix2D
value
- the value to test against.public boolean equals(Object obj)
FComplexMatrix2D
true
if and only if the argument is not null
and is at least a FloatMatrix2D
object that has the same
number of columns and rows as the receiver and has exactly the same
values at the same coordinates.equals
in class FComplexMatrix2D
obj
- the object to compare with.true
if the objects are the same; false
otherwise.public Object elements()
FComplexMatrix2D
elements
in class FComplexMatrix2D
public float[] getQuick(int row, int column)
FComplexMatrix2D
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().
getQuick
in class FComplexMatrix2D
row
- the index of the row-coordinate.column
- the index of the column-coordinate.public FComplexMatrix2D like(int rows, int columns)
FComplexMatrix2D
like
in class FComplexMatrix2D
rows
- the number of rows the matrix shall have.columns
- the number of columns the matrix shall have.public FComplexMatrix1D like1D(int size)
FComplexMatrix2D
like1D
in class FComplexMatrix2D
size
- the number of cells the matrix shall have.public void fft2()
public void fftColumns()
public void fftRows()
public void ifftColumns(boolean scale)
public void ifftRows(boolean scale)
public void ifft2(boolean scale)
scale
- if true then scaling is performedpublic void setQuick(int row, int column, float[] value)
FComplexMatrix2D
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().
setQuick
in class FComplexMatrix2D
row
- the index of the row-coordinate.column
- the index of the column-coordinate.value
- the value to be filled into the specified cell.public void setQuick(int row, int column, float re, float im)
FComplexMatrix2D
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().
setQuick
in class FComplexMatrix2D
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.public FComplexMatrix1D vectorize()
FComplexMatrix2D
vectorize
in class FComplexMatrix2D
public FComplexMatrix1D viewColumn(int column)
FComplexMatrix2D
viewColumn
in class FComplexMatrix2D
column
- the column to fix.FComplexMatrix2D.viewRow(int)
public FComplexMatrix2D viewColumnFlip()
FComplexMatrix2D
viewColumnFlip
in class FComplexMatrix2D
FComplexMatrix2D.viewRowFlip()
public FComplexMatrix2D viewDice()
FComplexMatrix2D
viewDice
in class FComplexMatrix2D
public FComplexMatrix2D viewPart(int row, int column, int height, int width)
FComplexMatrix2D
Note that the view is really just a range restriction: The returned matrix is backed by this matrix, so changes in the returned matrix are reflected in this matrix, and vice-versa.
The view contains the cells from [row,column] to [row+height-1,column+width-1], all inclusive. and has view.rows() == height; view.columns() == width;. A view's legal coordinates are again zero based, as usual. In other words, legal coordinates of the view range from [0,0] to [view.rows()-1==height-1,view.columns()-1==width-1]. As usual, any attempt to access a cell at a coordinate column<0 || column>=view.columns() || row<0 || row>=view.rows() will throw an IndexOutOfBoundsException.
viewPart
in class FComplexMatrix2D
row
- The index of the row-coordinate.column
- The index of the column-coordinate.height
- The height of the box.width
- The width of the box.public FComplexMatrix1D viewRow(int row)
FComplexMatrix2D
viewRow
in class FComplexMatrix2D
row
- the row to fix.FComplexMatrix2D.viewColumn(int)
public FComplexMatrix2D viewRowFlip()
FComplexMatrix2D
viewRowFlip
in class FComplexMatrix2D
FComplexMatrix2D.viewColumnFlip()
public FComplexMatrix2D viewSelection(int[] rowIndexes, int[] columnIndexes)
FComplexMatrix2D
To indicate "all" rows or "all columns", simply set the respective parameter
viewSelection
in class FComplexMatrix2D
rowIndexes
- The rows of the cells that shall be visible in the new view.
To indicate that all rows shall be visible, simply set
this parameter to null.columnIndexes
- The columns of the cells that shall be visible in the new
view. To indicate that all columns shall be visible,
simply set this parameter to null.public FComplexMatrix2D viewStrides(int _rowStride, int _columnStride)
FComplexMatrix2D
viewStrides
in class FComplexMatrix2D
_rowStride
- the row step factor._columnStride
- the column step factor.public FloatMatrix2D getImaginaryPart()
FComplexMatrix2D
getImaginaryPart
in class FComplexMatrix2D
public FloatMatrix2D getRealPart()
FComplexMatrix2D
getRealPart
in class FComplexMatrix2D
Jump to the Parallel Colt Homepage