|
|||||||||
| 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 methods that require any implementation to alter the matrix. Either the methods return matrix elements, some meta data or produce new instances.
The method copy() returns a PhysicalStore which extends MatrixSore and defines additional methods. A PhysicalStore is mutable.
| Method Summary | |
|---|---|
PhysicalStore<N> |
conjugate()
Each call must produce a new instance. |
PhysicalStore<N> |
copy()
Each call must produce a new instance. |
double |
doubleValue(int aRow,
int aCol)
|
boolean |
equals(MatrixStore<N> aStore,
NumberContext aCntxt)
|
int |
getColDim()
|
PhysicalStore.Factory<N> |
getFactory()
|
int |
getMinDim()
|
N |
getNumber(int aRow,
int aCol)
|
int |
getRowDim()
|
boolean |
isAbsolute(int aRow,
int aCol)
|
boolean |
isLowerLeftShaded()
The lower (left) triangle is shaded leaving an upper Hessenberg matrix. |
boolean |
isReal(int aRow,
int aCol)
|
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. |
boolean |
isZero(int aRow,
int aCol)
|
MatrixStore<N> |
multiplyLeft(MatrixStore<N> aStore)
|
MatrixStore<N> |
multiplyRight(MatrixStore<N> aStore)
|
int |
size()
|
Scalar<N> |
toScalar(int aRow,
int aCol)
|
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)
|
| Method Detail |
|---|
PhysicalStore<N> conjugate()
PhysicalStore<N> copy()
double doubleValue(int aRow,
int aCol)
boolean equals(MatrixStore<N> aStore,
NumberContext aCntxt)
int getColDim()
PhysicalStore.Factory<N> getFactory()
int getMinDim()
N getNumber(int aRow,
int aCol)
int getRowDim()
boolean isAbsolute(int aRow,
int aCol)
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)
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()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)
MatrixStore<N> multiplyLeft(MatrixStore<N> aStore)
MatrixStore<N> multiplyRight(MatrixStore<N> aStore)
int size()
Scalar<N> toScalar(int aRow,
int aCol)
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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||