public class WrapperFComplexMatrix3D extends FComplexMatrix3D
Constructor and Description |
---|
WrapperFComplexMatrix3D(FComplexMatrix3D newContent) |
Modifier and Type | Method and Description |
---|---|
Object |
elements()
Returns the elements of this matrix.
|
void |
fft2Slices()
Computes the 2D discrete Fourier transform (DFT) of each slice of this
matrix.
|
void |
fft3()
Computes the 3D discrete Fourier transform (DFT) of this matrix.
|
FloatMatrix3D |
getImaginaryPart()
Returns the imaginary part of this matrix
|
float[] |
getQuick(int slice,
int row,
int column)
Returns the matrix cell value at coordinate [slice,row,column].
|
FloatMatrix3D |
getRealPart()
Returns the real part of this matrix
|
void |
ifft2Slices(boolean scale)
Computes the 2D inverse of the discrete Fourier transform (IDFT) of each
slice of this matrix.
|
void |
ifft3(boolean scale)
Computes the 3D inverse of the discrete Fourier transform (IDFT) of this
matrix.
|
FComplexMatrix3D |
like(int slices,
int rows,
int columns)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified number of slices, rows and columns.
|
FComplexMatrix2D |
like2D(int rows,
int columns)
Construct and returns a new 2-d matrix of the corresponding dynamic
type, sharing the same cells.
|
void |
setQuick(int slice,
int row,
int column,
float[] value)
Sets the matrix cell at coordinate [slice,row,column] to the
specified value.
|
void |
setQuick(int slice,
int row,
int column,
float re,
float im)
Sets the matrix cell at coordinate [slice,row,column] to the
specified value.
|
FComplexMatrix1D |
vectorize()
Returns a vector obtained by stacking the columns of each slice of the
matrix on top of one another.
|
FComplexMatrix2D |
viewColumn(int column)
Constructs and returns a new 2-dimensional slice view representing
the slices and rows of the given column.
|
FComplexMatrix3D |
viewColumnFlip()
Constructs and returns a new flip view along the column axis.
|
FComplexMatrix3D |
viewDice(int axis0,
int axis1,
int axis2)
Constructs and returns a new dice view; Swaps dimensions (axes);
Example: 3 x 4 x 5 matrix --> 4 x 3 x 5 matrix.
|
FComplexMatrix3D |
viewPart(int slice,
int row,
int column,
int depth,
int height,
int width)
Constructs and returns a new sub-range view that is a
depth x height x width sub matrix starting at
[slice,row,column]; Equivalent to
view().part(slice,row,column,depth,height,width); Provided for
convenience only.
|
FComplexMatrix2D |
viewRow(int row)
Constructs and returns a new 2-dimensional slice view representing
the slices and columns of the given row.
|
FComplexMatrix3D |
viewRowFlip()
Constructs and returns a new flip view along the row axis.
|
FComplexMatrix3D |
viewSelection(int[] sliceIndexes,
int[] rowIndexes,
int[] columnIndexes)
Constructs and returns a new selection view that is a matrix
holding the indicated cells.
|
FComplexMatrix2D |
viewSlice(int slice)
Constructs and returns a new 2-dimensional slice view representing
the rows and columns of the given slice.
|
FComplexMatrix3D |
viewSliceFlip()
Constructs and returns a new flip view along the slice axis.
|
FComplexMatrix3D |
viewStrides(int _sliceStride,
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, equals, equals, get, getNonZeros, like, set, set, toArray, toString, toString, viewSelection, zSum
checkShape, checkShape, columns, columnStride, index, rows, rowStride, size, slices, sliceStride, toStringShort
ensureCapacity, isView, trimToSize
clone
public WrapperFComplexMatrix3D(FComplexMatrix3D newContent)
public Object elements()
FComplexMatrix3D
elements
in class FComplexMatrix3D
public void fft2Slices()
public void fft3()
public void ifft2Slices(boolean scale)
scale
- if true then scaling is performedpublic void ifft3(boolean scale)
scale
- if true then scaling is performedpublic float[] getQuick(int slice, int row, int column)
FComplexMatrix3D
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): slice<0 || slice>=slices() || row<0 || row>=rows() || column<0 || column>=column().
getQuick
in class FComplexMatrix3D
slice
- the index of the slice-coordinate.row
- the index of the row-coordinate.column
- the index of the column-coordinate.public FComplexMatrix3D like(int slices, int rows, int columns)
FComplexMatrix3D
like
in class FComplexMatrix3D
slices
- the number of slices the matrix shall have.rows
- the number of rows the matrix shall have.columns
- the number of columns the matrix shall have.public void setQuick(int slice, int row, int column, float[] value)
FComplexMatrix3D
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): slice<0 || slice>=slices() || row<0 || row>=rows() || column<0 || column>=column().
setQuick
in class FComplexMatrix3D
slice
- the index of the slice-coordinate.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 slice, int row, int column, float re, float im)
FComplexMatrix3D
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): slice<0 || slice>=slices() || row<0 || row>=rows() || column<0 || column>=column().
setQuick
in class FComplexMatrix3D
slice
- the index of the slice-coordinate.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()
FComplexMatrix3D
vectorize
in class FComplexMatrix3D
public FComplexMatrix2D viewColumn(int column)
FComplexMatrix3D
To obtain a slice view on subranges, construct a sub-ranging view ( view().part(...)), then apply this method to the sub-range view. To obtain 1-dimensional views, apply this method, then apply another slice view (methods viewColumn, viewRow) on the intermediate 2-dimensional view. To obtain 1-dimensional views on subranges, apply both steps.
viewColumn
in class FComplexMatrix3D
column
- the index of the column to fix.FComplexMatrix3D.viewSlice(int)
,
FComplexMatrix3D.viewRow(int)
public FComplexMatrix3D viewColumnFlip()
FComplexMatrix3D
viewColumnFlip
in class FComplexMatrix3D
FComplexMatrix3D.viewSliceFlip()
,
FComplexMatrix3D.viewRowFlip()
public FComplexMatrix2D viewSlice(int slice)
FComplexMatrix3D
To obtain a slice view on subranges, construct a sub-ranging view ( view().part(...)), then apply this method to the sub-range view. To obtain 1-dimensional views, apply this method, then apply another slice view (methods viewColumn, viewRow) on the intermediate 2-dimensional view. To obtain 1-dimensional views on subranges, apply both steps.
viewSlice
in class FComplexMatrix3D
slice
- the index of the slice to fix.FComplexMatrix3D.viewRow(int)
,
FComplexMatrix3D.viewColumn(int)
public FComplexMatrix3D viewSliceFlip()
FComplexMatrix3D
viewSliceFlip
in class FComplexMatrix3D
FComplexMatrix3D.viewRowFlip()
,
FComplexMatrix3D.viewColumnFlip()
public FComplexMatrix3D viewDice(int axis0, int axis1, int axis2)
FComplexMatrix3D
viewDice
in class FComplexMatrix3D
axis0
- the axis that shall become axis 0 (legal values 0..2).axis1
- the axis that shall become axis 1 (legal values 0..2).axis2
- the axis that shall become axis 2 (legal values 0..2).public FComplexMatrix3D viewPart(int slice, int row, int column, int depth, int height, int width)
FComplexMatrix3D
viewPart
in class FComplexMatrix3D
slice
- The index of the slice-coordinate.row
- The index of the row-coordinate.column
- The index of the column-coordinate.depth
- The depth of the box.height
- The height of the box.width
- The width of the box.public FComplexMatrix2D viewRow(int row)
FComplexMatrix3D
To obtain a slice view on subranges, construct a sub-ranging view ( view().part(...)), then apply this method to the sub-range view. To obtain 1-dimensional views, apply this method, then apply another slice view (methods viewColumn, viewRow) on the intermediate 2-dimensional view. To obtain 1-dimensional views on subranges, apply both steps.
viewRow
in class FComplexMatrix3D
row
- the index of the row to fix.FComplexMatrix3D.viewSlice(int)
,
FComplexMatrix3D.viewColumn(int)
public FComplexMatrix3D viewRowFlip()
FComplexMatrix3D
viewRowFlip
in class FComplexMatrix3D
FComplexMatrix3D.viewSliceFlip()
,
FComplexMatrix3D.viewColumnFlip()
public FComplexMatrix3D viewSelection(int[] sliceIndexes, int[] rowIndexes, int[] columnIndexes)
FComplexMatrix3D
Note that modifying the index arguments after this call has returned has no effect on the view. The returned view is backed by this matrix, so changes in the returned view are reflected in this matrix, and vice-versa.
viewSelection
in class FComplexMatrix3D
sliceIndexes
- The slices of the cells that shall be visible in the new view.
To indicate that all slices shall be visible, simply
set this parameter to null.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 FComplexMatrix3D viewStrides(int _sliceStride, int _rowStride, int _columnStride)
FComplexMatrix3D
viewStrides
in class FComplexMatrix3D
_sliceStride
- the slice step factor._rowStride
- the row step factor._columnStride
- the column step factor.public FComplexMatrix2D like2D(int rows, int columns)
FComplexMatrix3D
like2D
in class FComplexMatrix3D
rows
- the number of rows the matrix shall have.columns
- the number of columns the matrix shall have.public FloatMatrix3D getImaginaryPart()
FComplexMatrix3D
getImaginaryPart
in class FComplexMatrix3D
public FloatMatrix3D getRealPart()
FComplexMatrix3D
getRealPart
in class FComplexMatrix3D
Jump to the Parallel Colt Homepage