|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.ojalgo.array.BigArray
org.ojalgo.matrix.store.BigDenseStore
public final class BigDenseStore
A BigDecimal implementation of PhysicalStore.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ojalgo.matrix.decomposition.DecompositionStore |
|---|
DecompositionStore.ExchangeColumnsCaller<N extends Number>, DecompositionStore.HouseholderReference<N extends Number>, DecompositionStore.NegateColumnCaller<N extends Number>, DecompositionStore.RotateRightCaller<N extends Number> |
| Nested classes/interfaces inherited from interface org.ojalgo.matrix.store.PhysicalStore |
|---|
PhysicalStore.Factory<N extends Number,I extends PhysicalStore<N>> |
| Nested classes/interfaces inherited from interface org.ojalgo.matrix.store.MatrixStore |
|---|
MatrixStore.Builder<N extends Number> |
| Field Summary | |
|---|---|
static PhysicalStore.Factory<BigDecimal,BigDenseStore> |
FACTORY
|
int |
length
|
| Method Summary | |
|---|---|
BigDecimal |
aggregateAll(Aggregator aVisitor)
|
void |
applyCholesky(int iterationPoint,
ArrayAccess<BigDecimal> multipliers)
|
void |
applyLU(int iterationPoint,
ArrayAccess<BigDecimal> multipliers)
|
Array2D<BigDecimal> |
asArray2D()
|
Array1D<BigDecimal> |
asList()
|
MatrixStore.Builder<BigDecimal> |
builder()
|
void |
caxpy(BigDecimal aSclrA,
int aColX,
int aColY,
int aFirstRow)
column a * x plus y |
Array1D<ComplexNumber> |
computeInPlaceSchur(PhysicalStore<BigDecimal> aTransformationCollector,
boolean eigenvalue)
|
BigDenseStore |
conjugate()
Each call must produce a new instance. |
BigDenseStore |
copy()
Each call must produce a new instance. |
void |
divideAndCopyColumn(int aRow,
int aCol,
ArrayAccess<BigDecimal> aDestination)
|
double |
doubleValue(int anInd)
|
double |
doubleValue(int aRow,
int aCol)
Extracts one element of this matrix as a double. |
boolean |
equals(MatrixStore<BigDecimal> aStore,
NumberContext aCntxt)
|
boolean |
equals(Object anObj)
|
void |
exchangeColumns(int aColA,
int aColB)
|
void |
exchangeRows(int aRowA,
int aRowB)
|
void |
fillAll(BigDecimal aNmbr)
|
void |
fillByMultiplying(MatrixStore<BigDecimal> aLeftStore,
MatrixStore<BigDecimal> aRightStore)
|
void |
fillColumn(int aRow,
int aCol,
BigDecimal aNmbr)
|
void |
fillDiagonal(int aRow,
int aCol,
BigDecimal aNmbr)
|
void |
fillMatching(Access2D<? extends Number> aSource2D)
|
void |
fillMatching(BigDecimal aLeftArg,
BinaryFunction<BigDecimal> aFunc,
MatrixStore<BigDecimal> aRightArg)
Will replace the elements of [this] with the results of element wise invocation of the input binary funtion: |
void |
fillMatching(MatrixStore<BigDecimal> aLeftArg,
BinaryFunction<BigDecimal> aFunc,
BigDecimal aRightArg)
Will replace the elements of [this] with the results of element wise invocation of the input binary funtion: |
void |
fillMatching(MatrixStore<BigDecimal> aLeftArg,
BinaryFunction<BigDecimal> aFunc,
MatrixStore<BigDecimal> 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,
BigDecimal aNmbr)
|
boolean |
generateApplyAndCopyHouseholderColumn(int aRow,
int aCol,
Householder<BigDecimal> aDestination)
|
boolean |
generateApplyAndCopyHouseholderRow(int aRow,
int aCol,
Householder<BigDecimal> aDestination)
|
N |
get(int anInd)
|
BigDecimal |
get(int aRow,
int aCol)
|
int |
getColDim()
The size of this structure in the column-direction/dimension |
PhysicalStore.Factory<BigDecimal,BigDenseStore> |
getFactory()
|
int |
getIndexOfLargestInColumn(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 |
isLowerLeftShaded()
The entries below (left of) the first subdiagonal are zero - effectively an upper Hessenberg matrix. |
boolean |
isPositive(int aRow,
int aCol)
|
boolean |
isReal(int aRow,
int aCol)
|
boolean |
isUpperRightShaded()
The entries above (right of) the first superdiagonal are zero - effectively a lower Hessenberg matrix. |
boolean |
isZero(int aRow,
int aCol)
|
Iterator<N> |
iterator()
|
void |
maxpy(BigDecimal aSclrA,
MatrixStore<BigDecimal> aMtrxX)
matrix a * x plus y |
void |
modifyAll(UnaryFunction<BigDecimal> aFunc)
|
void |
modifyColumn(int aRow,
int aCol,
UnaryFunction<BigDecimal> aFunc)
|
void |
modifyDiagonal(int aRow,
int aCol,
UnaryFunction<BigDecimal> aFunc)
|
void |
modifyOne(int aRow,
int aCol,
UnaryFunction<BigDecimal> aFunc)
|
void |
modifyRow(int aRow,
int aCol,
UnaryFunction<BigDecimal> aFunc)
|
MatrixStore<BigDecimal> |
multiplyLeft(MatrixStore<BigDecimal> aStore)
|
MatrixStore<BigDecimal> |
multiplyRight(MatrixStore<BigDecimal> aStore)
|
void |
negateColumn(int aCol)
|
void |
raxpy(BigDecimal aSclrA,
int aRowX,
int aRowY,
int aFirstCol)
row a * x plus y |
void |
rotateRight(int aLow,
int aHigh,
double aCos,
double aSin)
|
void |
set(int aRow,
int aCol,
BigDecimal aNmbr)
|
void |
set(int aRow,
int aCol,
double aNmbr)
|
void |
setToIdentity(int aCol)
|
int |
size()
|
int |
size()
|
void |
substituteBackwards(Access2D<BigDecimal> 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<BigDecimal> aBody,
boolean onesOnDiagonal,
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<BigDecimal> |
toScalar(int aRow,
int aCol)
|
String |
toString()
|
void |
transformLeft(Householder<BigDecimal> aTransf,
int aFirstCol)
|
void |
transformLeft(Rotation<BigDecimal> aTransf)
As in MatrixStore.multiplyLeft(MatrixStore) where the
left/parameter matrix is a plane rotation. |
void |
transformRight(Householder<BigDecimal> aTransf,
int aFirstRow)
|
void |
transformRight(Rotation<BigDecimal> aTransf)
As in MatrixStore.multiplyRight(MatrixStore) where the
right/parameter matrix is a plane rotation. |
void |
transformSymmetric(Householder<BigDecimal> aTransf)
|
BigDenseStore |
transpose()
Each call must produce a new instance. |
void |
tred2(ArrayAccess<BigDecimal> mainDiagonal,
ArrayAccess<BigDecimal> offDiagonal,
boolean yesvecs)
|
void |
visitAll(AggregatorFunction<BigDecimal> aVisitor)
|
void |
visitColumn(int aRow,
int aCol,
AggregatorFunction<BigDecimal> aVisitor)
|
void |
visitDiagonal(int aRow,
int aCol,
AggregatorFunction<BigDecimal> aVisitor)
|
void |
visitRow(int aRow,
int aCol,
AggregatorFunction<BigDecimal> aVisitor)
|
| Methods inherited from class org.ojalgo.array.BigArray |
|---|
doubleValue, get |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Field Detail |
|---|
public static final PhysicalStore.Factory<BigDecimal,BigDenseStore> FACTORY
public final int length
| Method Detail |
|---|
public BigDecimal aggregateAll(Aggregator aVisitor)
aggregateAll in interface MatrixStore<BigDecimal>
public void applyCholesky(int iterationPoint,
ArrayAccess<BigDecimal> multipliers)
applyCholesky in interface DecompositionStore<BigDecimal>
public void applyLU(int iterationPoint,
ArrayAccess<BigDecimal> multipliers)
applyLU in interface DecompositionStore<BigDecimal>public Array2D<BigDecimal> asArray2D()
asArray2D in interface DecompositionStore<BigDecimal>public Array1D<BigDecimal> asList()
asList in interface PhysicalStore<BigDecimal>public final MatrixStore.Builder<BigDecimal> builder()
builder in interface MatrixStore<BigDecimal>
public void caxpy(BigDecimal aSclrA,
int aColX,
int aColY,
int aFirstRow)
PhysicalStorecolumn a * x plus y
[this(*,aColY)] = aSclrA [this(*,aColX)] + [this(*,aColY)]
caxpy in interface PhysicalStore<BigDecimal>
public Array1D<ComplexNumber> computeInPlaceSchur(PhysicalStore<BigDecimal> aTransformationCollector,
boolean eigenvalue)
computeInPlaceSchur in interface DecompositionStore<BigDecimal>public BigDenseStore conjugate()
MatrixStore
conjugate in interface MatrixStore<BigDecimal>public BigDenseStore copy()
MatrixStore
copy in interface MatrixStore<BigDecimal>
public void divideAndCopyColumn(int aRow,
int aCol,
ArrayAccess<BigDecimal> aDestination)
divideAndCopyColumn in interface DecompositionStore<BigDecimal>
public double doubleValue(int aRow,
int aCol)
aRow - A row index.aCol - A column index.
public boolean equals(MatrixStore<BigDecimal> aStore,
NumberContext aCntxt)
equals in interface MatrixStore<BigDecimal>public boolean equals(Object anObj)
equals in class BigArray
public void exchangeColumns(int aColA,
int aColB)
exchangeColumns in interface PhysicalStore<BigDecimal>
public void exchangeRows(int aRowA,
int aRowB)
exchangeRows in interface PhysicalStore<BigDecimal>public void fillAll(BigDecimal aNmbr)
fillAll in interface PhysicalStore<BigDecimal>
public void fillByMultiplying(MatrixStore<BigDecimal> aLeftStore,
MatrixStore<BigDecimal> aRightStore)
fillByMultiplying in interface PhysicalStore<BigDecimal>
public void fillColumn(int aRow,
int aCol,
BigDecimal aNmbr)
fillColumn in interface PhysicalStore<BigDecimal>
public void fillDiagonal(int aRow,
int aCol,
BigDecimal aNmbr)
fillDiagonal in interface PhysicalStore<BigDecimal>public void fillMatching(Access2D<? extends Number> aSource2D)
fillMatching in interface PhysicalStore<BigDecimal>
public void fillMatching(BigDecimal aLeftArg,
BinaryFunction<BigDecimal> aFunc,
MatrixStore<BigDecimal> 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<BigDecimal>
public void fillMatching(MatrixStore<BigDecimal> aLeftArg,
BinaryFunction<BigDecimal> aFunc,
BigDecimal 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<BigDecimal>
public void fillMatching(MatrixStore<BigDecimal> aLeftArg,
BinaryFunction<BigDecimal> aFunc,
MatrixStore<BigDecimal> 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<BigDecimal>
public void fillRow(int aRow,
int aCol,
BigDecimal aNmbr)
fillRow in interface PhysicalStore<BigDecimal>
public boolean generateApplyAndCopyHouseholderColumn(int aRow,
int aCol,
Householder<BigDecimal> aDestination)
generateApplyAndCopyHouseholderColumn in interface DecompositionStore<BigDecimal>
public boolean generateApplyAndCopyHouseholderRow(int aRow,
int aCol,
Householder<BigDecimal> aDestination)
generateApplyAndCopyHouseholderRow in interface DecompositionStore<BigDecimal>
public BigDecimal get(int aRow,
int aCol)
public int getColDim()
public PhysicalStore.Factory<BigDecimal,BigDenseStore> getFactory()
getFactory in interface MatrixStore<BigDecimal>
public int getIndexOfLargestInColumn(int aRow,
int aCol)
getIndexOfLargestInColumn in interface DecompositionStore<BigDecimal>public int getMinDim()
getMinDim in interface MatrixStore<BigDecimal>public int getRowDim()
public int hashCode()
hashCode in class BigArray
public boolean isAbsolute(int aRow,
int aCol)
isAbsolute in interface MatrixStore<BigDecimal>Scalar.isAbsolute()public boolean isLowerLeftShaded()
MatrixStore
isLowerLeftShaded in interface MatrixStore<BigDecimal>MatrixStore.isUpperRightShaded()
public boolean isPositive(int aRow,
int aCol)
isPositive in interface MatrixStore<BigDecimal>Scalar.isPositive()
public boolean isReal(int aRow,
int aCol)
isReal in interface MatrixStore<BigDecimal>Scalar.isReal()public boolean isUpperRightShaded()
MatrixStore
isUpperRightShaded in interface MatrixStore<BigDecimal>MatrixStore.isLowerLeftShaded()
public boolean isZero(int aRow,
int aCol)
isZero in interface MatrixStore<BigDecimal>Scalar.isZero()
public void maxpy(BigDecimal aSclrA,
MatrixStore<BigDecimal> aMtrxX)
PhysicalStorematrix a * x plus y
[this] = aSclrA [aMtrxX] + [this]
maxpy in interface PhysicalStore<BigDecimal>public void modifyAll(UnaryFunction<BigDecimal> aFunc)
modifyAll in interface PhysicalStore<BigDecimal>
public void modifyColumn(int aRow,
int aCol,
UnaryFunction<BigDecimal> aFunc)
modifyColumn in interface PhysicalStore<BigDecimal>
public void modifyDiagonal(int aRow,
int aCol,
UnaryFunction<BigDecimal> aFunc)
modifyDiagonal in interface PhysicalStore<BigDecimal>
public void modifyOne(int aRow,
int aCol,
UnaryFunction<BigDecimal> aFunc)
modifyOne in interface PhysicalStore<BigDecimal>
public void modifyRow(int aRow,
int aCol,
UnaryFunction<BigDecimal> aFunc)
modifyRow in interface PhysicalStore<BigDecimal>public MatrixStore<BigDecimal> multiplyLeft(MatrixStore<BigDecimal> aStore)
multiplyLeft in interface MatrixStore<BigDecimal>public MatrixStore<BigDecimal> multiplyRight(MatrixStore<BigDecimal> aStore)
multiplyRight in interface MatrixStore<BigDecimal>public void negateColumn(int aCol)
negateColumn in interface DecompositionStore<BigDecimal>
public void raxpy(BigDecimal aSclrA,
int aRowX,
int aRowY,
int aFirstCol)
PhysicalStorerow a * x plus y
[this(aRowY,*)] = aSclrA [this(aRowX,*)] + [this(aRowY,*)]
raxpy in interface PhysicalStore<BigDecimal>
public void rotateRight(int aLow,
int aHigh,
double aCos,
double aSin)
rotateRight in interface DecompositionStore<BigDecimal>
public void set(int aRow,
int aCol,
BigDecimal aNmbr)
set in interface PhysicalStore<BigDecimal>
public void set(int aRow,
int aCol,
double aNmbr)
set in interface PhysicalStore<BigDecimal>public void setToIdentity(int aCol)
setToIdentity in interface DecompositionStore<BigDecimal>
public void substituteBackwards(Access2D<BigDecimal> aBody,
boolean transposed)
DecompositionStore
substituteBackwards in interface DecompositionStore<BigDecimal>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<BigDecimal> aBody,
boolean onesOnDiagonal,
boolean zerosAboveDiagonal)
DecompositionStore
substituteForwards in interface DecompositionStore<BigDecimal>aBody - The equation system body parameters [A]onesOnDiagonal - true if aBody as ones on the diagonal
public Scalar<BigDecimal> toScalar(int aRow,
int aCol)
toScalar in interface MatrixStore<BigDecimal>
public void transformLeft(Householder<BigDecimal> aTransf,
int aFirstCol)
transformLeft in interface PhysicalStore<BigDecimal>public void transformLeft(Rotation<BigDecimal> 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<BigDecimal>PhysicalStore.transformRight(Rotation)
public void transformRight(Householder<BigDecimal> aTransf,
int aFirstRow)
transformRight in interface PhysicalStore<BigDecimal>public void transformRight(Rotation<BigDecimal> 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<BigDecimal>PhysicalStore.transformLeft(Rotation)public void transformSymmetric(Householder<BigDecimal> aTransf)
transformSymmetric in interface DecompositionStore<BigDecimal>public BigDenseStore transpose()
MatrixStore
transpose in interface MatrixStore<BigDecimal>
public void tred2(ArrayAccess<BigDecimal> mainDiagonal,
ArrayAccess<BigDecimal> offDiagonal,
boolean yesvecs)
tred2 in interface DecompositionStore<BigDecimal>public void visitAll(AggregatorFunction<BigDecimal> aVisitor)
visitAll in interface MatrixStore<BigDecimal>
public void visitColumn(int aRow,
int aCol,
AggregatorFunction<BigDecimal> aVisitor)
visitColumn in interface MatrixStore<BigDecimal>
public void visitDiagonal(int aRow,
int aCol,
AggregatorFunction<BigDecimal> aVisitor)
visitDiagonal in interface MatrixStore<BigDecimal>
public void visitRow(int aRow,
int aCol,
AggregatorFunction<BigDecimal> aVisitor)
visitRow in interface MatrixStore<BigDecimal>public int size()
public double doubleValue(int anInd)
public N get(int anInd)
public final Iterator<N> iterator()
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 | |||||||