|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ojalgo.matrix.store.MergedColumnsStore<N>
public final class MergedColumnsStore<N extends Number>
A merger of two MatrixStore instances by placing one store below
the other. The two matrices must have the same number of columns. The
columns of the two matrices are logically merged to form new longer
columns.
| Constructor Summary | |
|---|---|
MergedColumnsStore(MatrixStore<N> aBase,
MatrixStore<N> aLowerStore)
|
|
| Method Summary | |
|---|---|
double |
doubleValue(int aRow,
int aCol)
|
int |
getColDim()
|
int |
getMinDim()
|
N |
getNumber(int aRow,
int aCol)
|
PhysicalFactory<N> |
getPhysicalFactory()
|
int |
getRowDim()
|
boolean |
isLowerLeftShaded()
The lower (left) triangle is shaded leaving an upper Hessenberg matrix. |
boolean |
isShaded()
Either the lower (left) or the upper (right) triangles are shaded. |
boolean |
isUpperRightShaded()
The upper (right) triangle is shaded leaving a lower Hessenberg matrix. |
N |
multiplyBothSides(MatrixStore<N> aStore)
Calculates [aStore]T[this][aStore] as in a quadratic function [x]T[Q][x]. |
MatrixStore<N> |
multiplyLeft(MatrixStore<N> aStore)
|
MatrixStore<N> |
multiplyRight(MatrixStore<N> aStore)
|
PhysicalStore<N> |
toPhysicalStore()
May (probably will) return the same instance with every call. |
Scalar<N> |
toScalar(int aRow,
int aCol)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MergedColumnsStore(MatrixStore<N> aBase,
MatrixStore<N> aLowerStore)
| Method Detail |
|---|
public double doubleValue(int aRow,
int aCol)
MatrixStore.doubleValue(int, int)
public N getNumber(int aRow,
int aCol)
public int getRowDim()
getRowDim in interface MatrixStore<N extends Number>public boolean isLowerLeftShaded()
MatrixStoreThe lower (left) triangle is shaded leaving an upper Hessenberg matrix.
isLowerLeftShaded in interface MatrixStore<N extends Number>MatrixStore.isUpperRightShaded(),
MatrixStore.isShaded(),
PhysicalStore.shadeLowerLeft(),
PhysicalStore.unshade()public boolean isUpperRightShaded()
MatrixStoreThe upper (right) triangle is shaded leaving a lower Hessenberg matrix.
isUpperRightShaded in interface MatrixStore<N extends Number>MatrixStore.isLowerLeftShaded(),
MatrixStore.isShaded(),
PhysicalStore.shadeUpperRight(),
PhysicalStore.unshade()public MatrixStore<N> multiplyLeft(MatrixStore<N> aStore)
public MatrixStore<N> multiplyRight(MatrixStore<N> aStore)
public Scalar<N> toScalar(int aRow,
int aCol)
public int getColDim()
public final PhysicalFactory<N> getPhysicalFactory()
public final boolean isShaded()
MatrixStoreEither the lower (left) or the upper (right) triangles are shaded.
Shading part of a MatrixStore causes that
part to be ignored (as if it had zero valued elements) when doing matrix
multiplication. It is possible to shade part of a
PhysicalStore even though the shaded
elements are not actually zero valued. Calling doubleValue(i, j),
getNumber(i, j) or toScalar(i, j) will return the actual
stored value.
MatrixStore.isLowerLeftShaded(),
MatrixStore.isUpperRightShaded(),
PhysicalStore.unshade()public final N multiplyBothSides(MatrixStore<N> aStore)
MatrixStore
public final PhysicalStore<N> toPhysicalStore()
MatrixStorePhysicalStore instances are mutable.
If you plan to modify it you should make a copy first. Depending on what
you do with the PhysicalStore you may
have to unshade it.
PhysicalStore representation
of this MatrixStore.PhysicalStore.copy(),
PhysicalStore.unshade()public final String toString()
toString in class Objectpublic final int getMinDim()
getMinDim in interface MatrixStore<N extends Number>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||