|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MatrixStore<N extends Number>
A MatrixStore is a matrix (two-dimensional) store of numbers/scalars.
This interface does not define any methods that require implementations to alter the matrix. Either the methods return matrix elements, some meta data or produce new instances.
The methods conjugate(), copy() and transpose() return PhysicalStore instances. PhysicalStore extends MatrixStore. It defines additional methods, and is mutable.
| Nested Class Summary | |
|---|---|
static class |
MatrixStore.Builder<N extends Number>
|
| Method Summary | |
|---|---|
N |
aggregateAll(ChainableAggregator aVisitor)
|
N |
aggregateAll(CollectableAggregator aVisitor)
|
MatrixStore.Builder<N> |
builder()
|
PhysicalStore<N> |
conjugate()
Each call must produce a new instance. |
PhysicalStore<N> |
copy()
Each call must produce a new instance. |
boolean |
equals(MatrixStore<N> aStore,
NumberContext aCntxt)
|
int |
getColDim()
|
PhysicalStore.Factory<N> |
getFactory()
|
int |
getMinDim()
|
int |
getRowDim()
|
boolean |
isAbsolute(int aRow,
int aCol)
|
boolean |
isLowerLeftShaded()
Deprecated. v29 This feature will be removed |
boolean |
isReal(int aRow,
int aCol)
|
boolean |
isShaded()
Deprecated. v29 This feature will be removed |
boolean |
isUpperRightShaded()
Deprecated. v29 This feature will be removed |
boolean |
isZero(int aRow,
int aCol)
|
MatrixStore<N> |
multiplyLeft(MatrixStore<N> aStore)
|
MatrixStore<N> |
multiplyRight(MatrixStore<N> aStore)
|
int |
size()
|
double[][] |
toRawCopy()
|
PhysicalStore<N> |
transpose()
Each call must produce a new instance. |
void |
visitAll(AggregatorFunction<N> aVisitor)
|
void |
visitColumn(int aRow,
int aCol,
AggregatorFunction<N> aVisitor)
|
void |
visitDiagonal(int aRow,
int aCol,
AggregatorFunction<N> aVisitor)
|
void |
visitRow(int aRow,
int aCol,
AggregatorFunction<N> aVisitor)
|
| Methods inherited from interface org.ojalgo.access.Access2D |
|---|
doubleValue, get, toScalar |
| Method Detail |
|---|
N aggregateAll(ChainableAggregator aVisitor)
N aggregateAll(CollectableAggregator aVisitor)
MatrixStore.Builder<N> builder()
PhysicalStore<N> conjugate()
PhysicalStore<N> copy()
boolean equals(MatrixStore<N> aStore,
NumberContext aCntxt)
PhysicalStore.Factory<N> getFactory()
boolean isAbsolute(int aRow,
int aCol)
Scalar.isAbsolute()@Deprecated boolean isLowerLeftShaded()
The lower (left) triangle is shaded leaving an upper Hessenberg matrix.
isUpperRightShaded(),
isShaded(),
PhysicalStore.shadeLowerLeft(),
PhysicalStore.unshade()
boolean isReal(int aRow,
int aCol)
Scalar.isReal()@Deprecated boolean isShaded()
Either 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.
isLowerLeftShaded(),
isUpperRightShaded(),
PhysicalStore.unshade()@Deprecated boolean isUpperRightShaded()
The upper (right) triangle is shaded leaving a lower Hessenberg matrix.
isLowerLeftShaded(),
isShaded(),
PhysicalStore.shadeUpperRight(),
PhysicalStore.unshade()
boolean isZero(int aRow,
int aCol)
Scalar.isZero()MatrixStore<N> multiplyLeft(MatrixStore<N> aStore)
MatrixStore<N> multiplyRight(MatrixStore<N> aStore)
double[][] toRawCopy()
PhysicalStore<N> transpose()
void visitAll(AggregatorFunction<N> aVisitor)
void visitColumn(int aRow,
int aCol,
AggregatorFunction<N> aVisitor)
void visitDiagonal(int aRow,
int aCol,
AggregatorFunction<N> aVisitor)
void visitRow(int aRow,
int aCol,
AggregatorFunction<N> aVisitor)
int getColDim()
int getMinDim()
int getRowDim()
int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||