|
||||||||
| 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(Aggregator 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. |
double |
doubleValue(int anInd)
|
double |
doubleValue(int aRow,
int aCol)
Extracts one element of this matrix as a double. |
boolean |
equals(MatrixStore<N> aStore,
NumberContext aCntxt)
|
N |
get(int anInd)
|
N |
get(int aRow,
int aCol)
|
int |
getColDim()
The size of this structure in the column-direction/dimension |
PhysicalStore.Factory<N,?> |
getFactory()
|
int |
getMinDim()
|
int |
getRowDim()
The size of this structure in the row-direction/dimension |
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)
|
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)
|
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
N aggregateAll(Aggregator aVisitor)
MatrixStore.Builder<N> builder()
PhysicalStore<N> conjugate()
PhysicalStore<N> copy()
boolean equals(MatrixStore<N> aStore,
NumberContext aCntxt)
PhysicalStore.Factory<N,?> getFactory()
int getMinDim()
boolean isAbsolute(int aRow,
int aCol)
Scalar.isAbsolute()boolean isLowerLeftShaded()
isUpperRightShaded()
boolean isPositive(int aRow,
int aCol)
Scalar.isPositive()
boolean isReal(int aRow,
int aCol)
Scalar.isReal()boolean isUpperRightShaded()
isLowerLeftShaded()
boolean isZero(int aRow,
int aCol)
Scalar.isZero()MatrixStore<N> multiplyLeft(MatrixStore<N> aStore)
MatrixStore<N> multiplyRight(MatrixStore<N> aStore)
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)
double doubleValue(int aRow,
int aCol)
aRow - A row index.aCol - A column index.
N get(int aRow,
int aCol)
int getColDim()
int getRowDim()
int size()
double doubleValue(int anInd)
N get(int anInd)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||