|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ojalgo.array.ComplexArray
org.ojalgo.matrix.store.ComplexDenseStore
public final class ComplexDenseStore
A ComplexNumber implementation of PhysicalStore.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ojalgo.matrix.store.PhysicalStore |
|---|
PhysicalStore.Factory<N extends Number> |
| Nested classes/interfaces inherited from interface org.ojalgo.matrix.store.MatrixStore |
|---|
MatrixStore.Builder<N extends Number> |
| Field Summary | |
|---|---|
static boolean |
DEBUG
|
static PhysicalStore.Factory<ComplexNumber> |
FACTORY
|
int |
length
|
| Method Summary | |
|---|---|
ComplexNumber |
aggregateAll(ChainableAggregator aVisitor)
|
ComplexNumber |
aggregateAll(CollectableAggregator aVisitor)
|
Array1D<N> |
asArray1D()
A utility facade that conveniently/consistently presents the BasicArray as a one-dimensional array. |
Array2D<ComplexNumber> |
asArray2D()
|
Array2D<N> |
asArray2D(int aRowDim,
int aColDim)
A utility facade that conveniently/consistently presents the BasicArray as a two-dimensional array. |
ArrayAnyD<N> |
asArrayAnyD(int[] aStructure)
A utility facade that conveniently/consistently presents the BasicArray as a multi-dimensional array. |
Array1D<ComplexNumber> |
asList()
|
MatrixStore.Builder<ComplexNumber> |
builder()
|
void |
caxpy(ComplexNumber aSclrA,
int aColX,
int aColY,
int aFirstRow)
column a * x plus y |
void |
computeInPlaceBidiagonal(boolean newNormalAspectRatio)
|
boolean |
computeInPlaceCholesky(boolean checkForSPD)
|
void |
computeInPlaceHessenberg(boolean upper)
|
LUDecomposition.Pivot |
computeInPlaceLU(boolean assumeNoPivotingRequired)
|
void |
computeInPlaceQR()
|
void |
computeInPlaceTridiagonal()
|
PhysicalStore<ComplexNumber> |
computeInPlaceTridiagonal(boolean someCollectTransformations)
|
ComplexDenseStore |
conjugate()
Each call must produce a new instance. |
ComplexDenseStore |
copy()
Each call must produce a new instance. |
double |
doubleValue(int aRow,
int aCol)
Extracts one element of this matrix as a double. |
boolean |
equals(MatrixStore<ComplexNumber> aStore,
NumberContext aCntxt)
|
boolean |
equals(Object anObj)
|
void |
exchangeColumns(int aColA,
int aColB)
|
void |
exchangeRows(int aRowA,
int aRowB)
|
void |
fillAll(ComplexNumber aNmbr)
|
void |
fillByMultiplying(MatrixStore<ComplexNumber> aLeftArg,
MatrixStore<ComplexNumber> aRightArg)
|
void |
fillColumn(int aRow,
int aCol,
ComplexNumber aNmbr)
|
void |
fillDiagonal(int aRow,
int aCol,
ComplexNumber aNmbr)
|
void |
fillMatching(Access2D<ComplexNumber> aSource2D)
|
void |
fillMatching(ComplexNumber aLeftArg,
BinaryFunction<ComplexNumber> aFunc,
MatrixStore<ComplexNumber> aRightArg)
Will replace the elements of [this] with the results of element wise invocation of the input binary funtion: |
void |
fillMatching(MatrixStore<ComplexNumber> aLeftArg,
BinaryFunction<ComplexNumber> aFunc,
ComplexNumber aRightArg)
Will replace the elements of [this] with the results of element wise invocation of the input binary funtion: |
void |
fillMatching(MatrixStore<ComplexNumber> aLeftArg,
BinaryFunction<ComplexNumber> aFunc,
MatrixStore<ComplexNumber> aRightArg)
Will replace the elements of [this] with the results of element wise invocation of the input binary funtion: |
void |
fillRow(int aRow,
int aCol,
ComplexNumber aNmbr)
|
Householder<ComplexNumber> |
generateHouseholderColumn(int newI,
int newIj)
|
Householder<ComplexNumber> |
generateHouseholderRow(int newIj,
int newI)
|
ComplexNumber |
get(int aRow,
int aCol)
|
int |
getColDim()
The size of this structure in the column-direction/dimension |
PhysicalStore.Factory<ComplexNumber> |
getFactory()
|
int |
getIndexOfLargestInColumn(int aRow,
int aCol)
|
int |
getIndexOfLargestInRow(int aRow,
int aCol)
|
int |
getMinDim()
|
int |
getRowDim()
The size of this structure in the row-direction/dimension |
int |
hashCode()
|
boolean |
isAbsolute(int aRow,
int aCol)
|
boolean |
isReal(int aRow,
int aCol)
|
boolean |
isZero(int aRow,
int aCol)
|
void |
maxpy(ComplexNumber aSclrA,
MatrixStore<ComplexNumber> aMtrxX)
matrix a * x plus y |
void |
modifyAll(UnaryFunction<ComplexNumber> aFunc)
|
void |
modifyColumn(int aRow,
int aCol,
UnaryFunction<ComplexNumber> aFunc)
|
void |
modifyDiagonal(int aRow,
int aCol,
UnaryFunction<ComplexNumber> aFunc)
|
void |
modifyRow(int aRow,
int aCol,
UnaryFunction<ComplexNumber> aFunc)
|
MatrixStore<ComplexNumber> |
multiplyLeft(MatrixStore<ComplexNumber> aStore)
|
MatrixStore<ComplexNumber> |
multiplyRight(MatrixStore<ComplexNumber> aStore)
|
void |
raxpy(ComplexNumber aSclrA,
int aRowX,
int aRowY,
int aFirstCol)
row a * x plus y |
void |
set(int aRow,
int aCol,
ComplexNumber aNmbr)
|
void |
set(int aRow,
int aCol,
double aNmbr)
|
int |
size()
|
int |
size()
|
void |
substituteBackwards(Access2D<ComplexNumber> aBody,
boolean transposed)
Will solve the equation system [A][X]=[B] where: [aBody][this]=[this] is [A][X]=[B] ("this" is the right hand side, and it will be overwritten with the solution). [A] is upper/right triangular |
void |
substituteForwards(Access2D<ComplexNumber> aBody,
boolean onesOnDiagonal,
Access2D<ComplexNumber> aRHS,
boolean zerosAboveDiagonal)
Will solve the equation system [A][X]=[B] where: [aBody][this]=[this] is [A][X]=[B] ("this" is the right hand side, and it will be overwritten with the solution). [A] is lower/left triangular |
Scalar<ComplexNumber> |
toScalar(int aRow,
int aCol)
|
String |
toString()
|
void |
transformLeft(Householder.Reference<ComplexNumber> aTransf,
int aFirstCol)
|
void |
transformLeft(Householder<ComplexNumber> aTransf,
int aFirstCol)
|
void |
transformLeft(Rotation<ComplexNumber> aTransf)
As in MatrixStore.multiplyLeft(MatrixStore) where the
left/parameter matrix is a plane rotation. |
void |
transformRight(Householder.Reference<ComplexNumber> aTransf,
int aFirstRow)
|
void |
transformRight(Householder<ComplexNumber> aTransf,
int aFirstRow)
|
void |
transformRight(Rotation<ComplexNumber> aTransf)
As in MatrixStore.multiplyRight(MatrixStore) where the
right/parameter matrix is a plane rotation. |
ComplexDenseStore |
transpose()
Each call must produce a new instance. |
void |
visitAll(AggregatorFunction<ComplexNumber> aVisitor)
|
void |
visitColumn(int aRow,
int aCol,
AggregatorFunction<ComplexNumber> aVisitor)
|
void |
visitDiagonal(int aRow,
int aCol,
AggregatorFunction<ComplexNumber> aVisitor)
|
void |
visitRow(int aRow,
int aCol,
AggregatorFunction<ComplexNumber> aVisitor)
|
| Methods inherited from class org.ojalgo.array.ComplexArray |
|---|
doubleValue, exchange, fill, fill, fill, fill, get, getIndexOfLargest, isAbsolute, isReal, isZero, modify, modify, modify, modify, modify, modify, searchAscending, set, set, sortAscending, toScalar, visit |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final PhysicalStore.Factory<ComplexNumber> FACTORY
public static boolean DEBUG
public final int length
| Method Detail |
|---|
public ComplexNumber aggregateAll(ChainableAggregator aVisitor)
aggregateAll in interface MatrixStore<ComplexNumber>public ComplexNumber aggregateAll(CollectableAggregator aVisitor)
aggregateAll in interface MatrixStore<ComplexNumber>public Array2D<ComplexNumber> asArray2D()
asArray2D in interface DecompositionStore<ComplexNumber>public Array1D<ComplexNumber> asList()
asList in interface PhysicalStore<ComplexNumber>public final MatrixStore.Builder<ComplexNumber> builder()
builder in interface MatrixStore<ComplexNumber>
public void caxpy(ComplexNumber aSclrA,
int aColX,
int aColY,
int aFirstRow)
PhysicalStorecolumn a * x plus y
[this(*,aColY)] = aSclrA [this(*,aColX)] + [this(*,aColY)]
caxpy in interface PhysicalStore<ComplexNumber>public void computeInPlaceBidiagonal(boolean newNormalAspectRatio)
computeInPlaceBidiagonal in interface DecompositionStore<ComplexNumber>public boolean computeInPlaceCholesky(boolean checkForSPD)
computeInPlaceCholesky in interface DecompositionStore<ComplexNumber>public void computeInPlaceHessenberg(boolean upper)
computeInPlaceHessenberg in interface DecompositionStore<ComplexNumber>public LUDecomposition.Pivot computeInPlaceLU(boolean assumeNoPivotingRequired)
computeInPlaceLU in interface DecompositionStore<ComplexNumber>public void computeInPlaceQR()
computeInPlaceQR in interface DecompositionStore<ComplexNumber>public void computeInPlaceTridiagonal()
computeInPlaceTridiagonal in interface DecompositionStore<ComplexNumber>public PhysicalStore<ComplexNumber> computeInPlaceTridiagonal(boolean someCollectTransformations)
public ComplexDenseStore conjugate()
MatrixStore
conjugate in interface MatrixStore<ComplexNumber>public ComplexDenseStore copy()
MatrixStore
copy in interface MatrixStore<ComplexNumber>
public double doubleValue(int aRow,
int aCol)
aRow - A row index.aCol - A column index.
public boolean equals(MatrixStore<ComplexNumber> aStore,
NumberContext aCntxt)
equals in interface MatrixStore<ComplexNumber>public boolean equals(Object anObj)
equals in class ComplexArray
public void exchangeColumns(int aColA,
int aColB)
exchangeColumns in interface PhysicalStore<ComplexNumber>
public void exchangeRows(int aRowA,
int aRowB)
exchangeRows in interface PhysicalStore<ComplexNumber>public void fillAll(ComplexNumber aNmbr)
fillAll in interface PhysicalStore<ComplexNumber>
public void fillByMultiplying(MatrixStore<ComplexNumber> aLeftArg,
MatrixStore<ComplexNumber> aRightArg)
fillByMultiplying in interface PhysicalStore<ComplexNumber>
public void fillColumn(int aRow,
int aCol,
ComplexNumber aNmbr)
fillColumn in interface PhysicalStore<ComplexNumber>
public void fillDiagonal(int aRow,
int aCol,
ComplexNumber aNmbr)
fillDiagonal in interface PhysicalStore<ComplexNumber>public void fillMatching(Access2D<ComplexNumber> aSource2D)
fillMatching in interface PhysicalStore<ComplexNumber>
public void fillMatching(ComplexNumber aLeftArg,
BinaryFunction<ComplexNumber> aFunc,
MatrixStore<ComplexNumber> aRightArg)
PhysicalStoreWill replace the elements of [this] with the results of element wise invocation of the input binary funtion:
this(i,j) = aFunc.invoke(aLeftArg,aRightArg(i,j))
fillMatching in interface PhysicalStore<ComplexNumber>
public void fillMatching(MatrixStore<ComplexNumber> aLeftArg,
BinaryFunction<ComplexNumber> aFunc,
ComplexNumber aRightArg)
PhysicalStoreWill replace the elements of [this] with the results of element wise invocation of the input binary funtion:
this(i,j) = aFunc.invoke(aLeftArg(i,j),aRightArg))
fillMatching in interface PhysicalStore<ComplexNumber>
public void fillMatching(MatrixStore<ComplexNumber> aLeftArg,
BinaryFunction<ComplexNumber> aFunc,
MatrixStore<ComplexNumber> aRightArg)
PhysicalStoreWill replace the elements of [this] with the results of element wise invocation of the input binary funtion:
this(i,j) = aFunc.invoke(aLeftArg(i,j),aRightArg(i,j))
fillMatching in interface PhysicalStore<ComplexNumber>
public void fillRow(int aRow,
int aCol,
ComplexNumber aNmbr)
fillRow in interface PhysicalStore<ComplexNumber>
public Householder<ComplexNumber> generateHouseholderColumn(int newI,
int newIj)
generateHouseholderColumn in interface PhysicalStore<ComplexNumber>
public Householder<ComplexNumber> generateHouseholderRow(int newIj,
int newI)
generateHouseholderRow in interface PhysicalStore<ComplexNumber>
public ComplexNumber get(int aRow,
int aCol)
public int getColDim()
public PhysicalStore.Factory<ComplexNumber> getFactory()
getFactory in interface MatrixStore<ComplexNumber>
public int getIndexOfLargestInColumn(int aRow,
int aCol)
getIndexOfLargestInColumn in interface PhysicalStore<ComplexNumber>
public int getIndexOfLargestInRow(int aRow,
int aCol)
getIndexOfLargestInRow in interface PhysicalStore<ComplexNumber>public int getMinDim()
getMinDim in interface MatrixStore<ComplexNumber>public int getRowDim()
public int hashCode()
hashCode in class ComplexArray
public boolean isAbsolute(int aRow,
int aCol)
isAbsolute in interface MatrixStore<ComplexNumber>Scalar.isAbsolute()
public boolean isReal(int aRow,
int aCol)
isReal in interface MatrixStore<ComplexNumber>Scalar.isReal()
public boolean isZero(int aRow,
int aCol)
isZero in interface MatrixStore<ComplexNumber>Scalar.isZero()
public void maxpy(ComplexNumber aSclrA,
MatrixStore<ComplexNumber> aMtrxX)
PhysicalStorematrix a * x plus y
[this] = aSclrA [aMtrxX] + [this]
maxpy in interface PhysicalStore<ComplexNumber>public void modifyAll(UnaryFunction<ComplexNumber> aFunc)
modifyAll in interface PhysicalStore<ComplexNumber>
public void modifyColumn(int aRow,
int aCol,
UnaryFunction<ComplexNumber> aFunc)
modifyColumn in interface PhysicalStore<ComplexNumber>
public void modifyDiagonal(int aRow,
int aCol,
UnaryFunction<ComplexNumber> aFunc)
modifyDiagonal in interface PhysicalStore<ComplexNumber>
public void modifyRow(int aRow,
int aCol,
UnaryFunction<ComplexNumber> aFunc)
modifyRow in interface PhysicalStore<ComplexNumber>public MatrixStore<ComplexNumber> multiplyLeft(MatrixStore<ComplexNumber> aStore)
multiplyLeft in interface MatrixStore<ComplexNumber>public MatrixStore<ComplexNumber> multiplyRight(MatrixStore<ComplexNumber> aStore)
multiplyRight in interface MatrixStore<ComplexNumber>
public void raxpy(ComplexNumber aSclrA,
int aRowX,
int aRowY,
int aFirstCol)
PhysicalStorerow a * x plus y
[this(aRowY,*)] = aSclrA [this(aRowX,*)] + [this(aRowY,*)]
raxpy in interface PhysicalStore<ComplexNumber>
public void set(int aRow,
int aCol,
ComplexNumber aNmbr)
set in interface PhysicalStore<ComplexNumber>
public void set(int aRow,
int aCol,
double aNmbr)
set in interface PhysicalStore<ComplexNumber>
public void substituteBackwards(Access2D<ComplexNumber> aBody,
boolean transposed)
DecompositionStore
substituteBackwards in interface DecompositionStore<ComplexNumber>aBody - The equation system body parameters [A]transposed - true if the upper/right part of aBody is
actually stored in the lower/left part of the matrix.
public void substituteForwards(Access2D<ComplexNumber> aBody,
boolean onesOnDiagonal,
Access2D<ComplexNumber> aRHS,
boolean zerosAboveDiagonal)
DecompositionStore
substituteForwards in interface DecompositionStore<ComplexNumber>aBody - The equation system body parameters [A]onesOnDiagonal - true if aBody as ones on the diagonal
public Scalar<ComplexNumber> toScalar(int aRow,
int aCol)
toScalar in interface MatrixStore<ComplexNumber>
public void transformLeft(Householder.Reference<ComplexNumber> aTransf,
int aFirstCol)
transformLeft in interface DecompositionStore<ComplexNumber>
public void transformLeft(Householder<ComplexNumber> aTransf,
int aFirstCol)
transformLeft in interface PhysicalStore<ComplexNumber>public void transformLeft(Rotation<ComplexNumber> aTransf)
PhysicalStore
As in MatrixStore.multiplyLeft(MatrixStore) where the
left/parameter matrix is a plane rotation.
Multiplying by a plane rotation from the left means that [this] gets two of its rows updated to new combinations of those two (current) rows.
There are two ways to transpose/invert a rotation. Either you negate the angle or you interchange the two indeces that define the rotation plane.
transformLeft in interface PhysicalStore<ComplexNumber>PhysicalStore.transformRight(Rotation)
public void transformRight(Householder.Reference<ComplexNumber> aTransf,
int aFirstRow)
transformRight in interface DecompositionStore<ComplexNumber>
public void transformRight(Householder<ComplexNumber> aTransf,
int aFirstRow)
transformRight in interface PhysicalStore<ComplexNumber>public void transformRight(Rotation<ComplexNumber> aTransf)
PhysicalStore
As in MatrixStore.multiplyRight(MatrixStore) where the
right/parameter matrix is a plane rotation.
Multiplying by a plane rotation from the right means that [this] gets two of its columns updated to new combinations of those two (current) columns.
There result is undefined if the two input indeces are the same (in which case the rotation plane is undefined).
transformRight in interface PhysicalStore<ComplexNumber>PhysicalStore.transformLeft(Rotation)public ComplexDenseStore transpose()
MatrixStore
transpose in interface MatrixStore<ComplexNumber>public void visitAll(AggregatorFunction<ComplexNumber> aVisitor)
visitAll in interface MatrixStore<ComplexNumber>
public void visitColumn(int aRow,
int aCol,
AggregatorFunction<ComplexNumber> aVisitor)
visitColumn in interface MatrixStore<ComplexNumber>
public void visitDiagonal(int aRow,
int aCol,
AggregatorFunction<ComplexNumber> aVisitor)
visitDiagonal in interface MatrixStore<ComplexNumber>
public void visitRow(int aRow,
int aCol,
AggregatorFunction<ComplexNumber> aVisitor)
visitRow in interface MatrixStore<ComplexNumber>public int size()
public final Array1D<N> asArray1D()
A utility facade that conveniently/consistently presents the BasicArray as a one-dimensional array. Note that you will modify the actual array by accessing it through this facade.
Disregards the array structure, and simply treats it as one-domensional.
public final Array2D<N> asArray2D(int aRowDim,
int aColDim)
A utility facade that conveniently/consistently presents the BasicArray as a two-dimensional array. Note that you will modify the actual array by accessing it through this facade.
If "this" has more than two dimensions then only the first plane of the first cube of the first... is used/accessed. If this only has one dimension then everything is assumed to be in the first column of the first plane of the first cube...
public final ArrayAnyD<N> asArrayAnyD(int[] aStructure)
A utility facade that conveniently/consistently presents the BasicArray as a multi-dimensional array. Note that you will modify the actual array by accessing it through this facade.
public final int size()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||