|
|||||||||
| PREV CLASS NEXT CLASS | All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcern.colt.PersistentObject
cern.colt.matrix.AbstractMatrix
cern.colt.matrix.AbstractMatrix1D
cern.colt.matrix.tdcomplex.DComplexMatrix1D
cern.colt.matrix.tdcomplex.impl.WrapperDComplexMatrix1D
public class WrapperDComplexMatrix1D
1-d matrix holding complex elements; either a view wrapping another matrix or a matrix whose views are wrappers.
| Constructor Summary | |
|---|---|
WrapperDComplexMatrix1D(DComplexMatrix1D newContent)
|
|
| Method Summary | |
|---|---|
Object |
elements()
Returns the elements of this matrix. |
DoubleMatrix1D |
getImaginaryPart()
Returns the imaginary part of this matrix |
double[] |
getQuick(int index)
Returns the matrix cell value at coordinate index. |
DoubleMatrix1D |
getRealPart()
Returns the real part of this matrix |
DComplexMatrix1D |
like(int size)
Construct and returns a new empty matrix of the same dynamic type as the receiver, having the specified size. |
DComplexMatrix2D |
like2D(int rows,
int columns)
Construct and returns a new 2-d matrix of the corresponding dynamic type, entirely independent of the receiver. |
DComplexMatrix2D |
reshape(int rows,
int columns)
Returns new DoubleMatrix2D of size rows x columns whose elements are taken column-wise from this matrix. |
DComplexMatrix3D |
reshape(int slices,
int rows,
int columns)
Returns new DoubleMatrix3D of size slices x rows x columns, whose elements are taken column-wise from this matrix. |
void |
setQuick(int index,
double[] value)
Sets the matrix cell at coordinate index to the specified value. |
void |
setQuick(int index,
double re,
double im)
Sets the matrix cell at coordinate index to the specified value. |
DComplexMatrix1D |
viewFlip()
Constructs and returns a new flip view. |
DComplexMatrix1D |
viewPart(int index,
int width)
Constructs and returns a new sub-range view that is a width sub matrix starting at index. |
DComplexMatrix1D |
viewSelection(int[] indexes)
Constructs and returns a new selection view that is a matrix holding the indicated cells. |
DComplexMatrix1D |
viewStrides(int _stride)
Constructs and returns a new stride view which is a sub matrix consisting of every i-th cell. |
| Methods inherited from class cern.colt.matrix.tdcomplex.DComplexMatrix1D |
|---|
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, zSum |
| Methods inherited from class cern.colt.matrix.AbstractMatrix1D |
|---|
checkSize, index, size, stride, 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 |
|---|
public WrapperDComplexMatrix1D(DComplexMatrix1D newContent)
| Method Detail |
|---|
public double[] getQuick(int index)
DComplexMatrix1DProvided 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 DComplexMatrix1Dindex - the index of the cell.
public Object elements()
DComplexMatrix1D
elements in class DComplexMatrix1Dpublic DComplexMatrix1D like(int size)
DComplexMatrix1D
like in class DComplexMatrix1Dsize - the number of cell the matrix shall have.
public DComplexMatrix2D like2D(int rows,
int columns)
DComplexMatrix1D
like2D in class DComplexMatrix1Drows - the number of rows the matrix shall have.columns - the number of columns the matrix shall have.
public DComplexMatrix2D reshape(int rows,
int columns)
DComplexMatrix1D
reshape in class DComplexMatrix1Drows - number of rowscolumns - number of columns
public DComplexMatrix3D reshape(int slices,
int rows,
int columns)
DComplexMatrix1D
reshape in class DComplexMatrix1Drows - number of rowscolumns - number of columns
public void setQuick(int index,
double[] value)
DComplexMatrix1DProvided 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 DComplexMatrix1Dindex - 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,
double re,
double im)
DComplexMatrix1DProvided 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 DComplexMatrix1Dindex - 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 DComplexMatrix1D viewFlip()
DComplexMatrix1D
viewFlip in class DComplexMatrix1D
public DComplexMatrix1D viewPart(int index,
int width)
DComplexMatrix1DNote 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 DComplexMatrix1Dindex - The index of the first cell.width - The width of the range.
public DComplexMatrix1D viewSelection(int[] indexes)
DComplexMatrix1D
viewSelection in class DComplexMatrix1Dindexes - 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 DComplexMatrix1D viewStrides(int _stride)
DComplexMatrix1D
viewStrides in class DComplexMatrix1D_stride - the step factor.
public DoubleMatrix1D getImaginaryPart()
DComplexMatrix1D
getImaginaryPart in class DComplexMatrix1Dpublic DoubleMatrix1D getRealPart()
DComplexMatrix1D
getRealPart in class DComplexMatrix1D
|
|||||||||
| PREV CLASS NEXT CLASS | All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||