|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ojalgo.matrix.store.SingleElementStore<N>
public final class SingleElementStore<N extends Number>
| Constructor Summary | |
|---|---|
SingleElementStore(PhysicalStore.Factory<N> aFactory,
N anElement)
|
|
| 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)
|
boolean |
equals(Object someObj)
|
int |
getColDim()
|
PhysicalStore.Factory<N> |
getFactory()
|
int |
getMinDim()
|
N |
getNumber(int aRow,
int aCol)
|
int |
getRowDim()
|
int |
hashCode()
|
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)
|
static SingleElementStore<BigDecimal> |
makeBig(BigDecimal aSingleElement)
|
static SingleElementStore<ComplexNumber> |
makeComplex(ComplexNumber aSingleElement)
|
static SingleElementStore<Double> |
makePrimitive(double aSingleElement)
|
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 class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleElementStore(PhysicalStore.Factory<N> aFactory,
N anElement)
| Method Detail |
|---|
public static SingleElementStore<BigDecimal> makeBig(BigDecimal aSingleElement)
public static SingleElementStore<ComplexNumber> makeComplex(ComplexNumber aSingleElement)
public static SingleElementStore<Double> makePrimitive(double aSingleElement)
public PhysicalStore<N> conjugate()
MatrixStore
conjugate in interface MatrixStore<N extends Number>public PhysicalStore<N> copy()
MatrixStore
copy in interface MatrixStore<N extends Number>
public double doubleValue(int aRow,
int aCol)
public int getColDim()
public N getNumber(int aRow,
int aCol)
public int getRowDim()
public boolean isLowerLeftShaded()
MatrixStoreThe lower (left) triangle is shaded leaving an upper Hessenberg matrix.
MatrixStore.isUpperRightShaded(),
MatrixStore.isShaded(),
PhysicalStore.shadeLowerLeft(),
PhysicalStore.unshade()public boolean isUpperRightShaded()
MatrixStoreThe upper (right) triangle is shaded leaving a lower Hessenberg matrix.
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 PhysicalStore<N> transpose()
MatrixStore
transpose in interface MatrixStore<N extends Number>public final PhysicalStore.Factory<N> getFactory()
public final boolean equals(MatrixStore<N> aStore,
NumberContext aCntxt)
equals in interface MatrixStore<N extends Number>public final boolean equals(Object someObj)
equals in class Objectpublic int getMinDim()
getMinDim in interface MatrixStore<N extends Number>public final int hashCode()
hashCode in class Object
public boolean isAbsolute(int aRow,
int aCol)
isAbsolute in interface MatrixStore<N extends Number>
public boolean isReal(int aRow,
int aCol)
isReal in interface MatrixStore<N extends Number>public 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.
isShaded in interface MatrixStore<N extends Number>MatrixStore.isLowerLeftShaded(),
MatrixStore.isUpperRightShaded(),
PhysicalStore.unshade()
public boolean isZero(int aRow,
int aCol)
isZero in interface MatrixStore<N extends Number>public int size()
size in interface MatrixStore<N extends Number>public void visitAll(AggregatorFunction<N> aVisitor)
visitAll in interface MatrixStore<N extends Number>
public void visitColumn(int aRow,
int aCol,
AggregatorFunction<N> aVisitor)
visitColumn in interface MatrixStore<N extends Number>
public void visitDiagonal(int aRow,
int aCol,
AggregatorFunction<N> aVisitor)
visitDiagonal in interface MatrixStore<N extends Number>
public void visitRow(int aRow,
int aCol,
AggregatorFunction<N> aVisitor)
visitRow in interface MatrixStore<N extends Number>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||