public class WrapperFComplexMatrix1D extends FComplexMatrix1D
| Constructor and Description |
|---|
WrapperFComplexMatrix1D(FComplexMatrix1D newContent) |
| Modifier and Type | Method and Description |
|---|---|
Object |
elements()
Returns the elements of this matrix.
|
FloatMatrix1D |
getImaginaryPart()
Returns the imaginary part of this matrix
|
float[] |
getQuick(int index)
Returns the matrix cell value at coordinate index.
|
FloatMatrix1D |
getRealPart()
Returns the real part of this matrix
|
FComplexMatrix1D |
like(int size)
Construct and returns a new empty matrix of the same dynamic type
as the receiver, having the specified size.
|
FComplexMatrix2D |
like2D(int rows,
int columns)
Construct and returns a new 2-d matrix of the corresponding dynamic
type, entirely independent of the receiver.
|
FComplexMatrix2D |
reshape(int rows,
int columns)
Returns new FloatMatrix2D of size rows x columns whose elements are taken
column-wise from this matrix.
|
FComplexMatrix3D |
reshape(int slices,
int rows,
int columns)
Returns new FloatMatrix3D of size slices x rows x columns, whose elements
are taken column-wise from this matrix.
|
void |
setQuick(int index,
float[] value)
Sets the matrix cell at coordinate index to the specified value.
|
void |
setQuick(int index,
float re,
float im)
Sets the matrix cell at coordinate index to the specified value.
|
FComplexMatrix1D |
viewFlip()
Constructs and returns a new flip view.
|
FComplexMatrix1D |
viewPart(int index,
int width)
Constructs and returns a new sub-range view that is a
width sub matrix starting at index.
|
FComplexMatrix1D |
viewSelection(int[] indexes)
Constructs and returns a new selection view that is a matrix
holding the indicated cells.
|
FComplexMatrix1D |
viewStrides(int _stride)
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, assignImaginary, assignReal, cardinality, copy, equals, equals, get, getNonZeros, like, set, set, swap, toArray, toArray, toString, toString, viewSelection, zDotProduct, zDotProduct, zDotProduct, zSumcheckSize, index, size, stride, toStringShortensureCapacity, isView, trimToSizeclonepublic WrapperFComplexMatrix1D(FComplexMatrix1D newContent)
public float[] getQuick(int index)
FComplexMatrix1DProvided 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): index<0 || index>=size().
getQuick in class FComplexMatrix1Dindex - the index of the cell.public Object elements()
FComplexMatrix1Delements in class FComplexMatrix1Dpublic FComplexMatrix1D like(int size)
FComplexMatrix1Dlike in class FComplexMatrix1Dsize - the number of cell the matrix shall have.public FComplexMatrix2D like2D(int rows, int columns)
FComplexMatrix1Dlike2D in class FComplexMatrix1Drows - the number of rows the matrix shall have.columns - the number of columns the matrix shall have.public FComplexMatrix2D reshape(int rows, int columns)
FComplexMatrix1Dreshape in class FComplexMatrix1Drows - number of rowscolumns - number of columnspublic FComplexMatrix3D reshape(int slices, int rows, int columns)
FComplexMatrix1Dreshape in class FComplexMatrix1Drows - number of rowscolumns - number of columnspublic void setQuick(int index,
float[] value)
FComplexMatrix1DProvided 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): index<0 || index>=size().
setQuick in class FComplexMatrix1Dindex - the index of the cell.value - the value to be filled into the specified cell (re=value[0],
im=value[1]).public void setQuick(int index,
float re,
float im)
FComplexMatrix1DProvided 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): index<0 || index>=size().
setQuick in class FComplexMatrix1Dindex - the index of the cell.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 viewFlip()
FComplexMatrix1DviewFlip in class FComplexMatrix1Dpublic FComplexMatrix1D viewPart(int index, int width)
FComplexMatrix1DNote 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 index..index+width-1. and has view.size() == width. A view's legal coordinates are again zero based, as usual. In other words, legal coordinates of the view are 0 .. view.size()-1==width-1. As usual, any attempt to access a cell at other coordinates will throw an IndexOutOfBoundsException.
viewPart in class FComplexMatrix1Dindex - The index of the first cell.width - The width of the range.public FComplexMatrix1D viewSelection(int[] indexes)
FComplexMatrix1DviewSelection in class FComplexMatrix1Dindexes - The indexes of the cells that shall be visible in the new
view. To indicate that all cells shall be visible,
simply set this parameter to null.public FComplexMatrix1D viewStrides(int _stride)
FComplexMatrix1DviewStrides in class FComplexMatrix1D_stride - the step factor.public FloatMatrix1D getImaginaryPart()
FComplexMatrix1DgetImaginaryPart in class FComplexMatrix1Dpublic FloatMatrix1D getRealPart()
FComplexMatrix1DgetRealPart in class FComplexMatrix1DJump to the Parallel Colt Homepage