public final class AboveBelowStore<N extends java.lang.Number>
extends java.lang.Object
MatrixStore.Builder<N extends java.lang.Number>, MatrixStore.ElementsConsumer<N extends java.lang.Number>, MatrixStore.ElementsSupplier<N extends java.lang.Number>
Access2D.Elements, Access2D.Factory<I extends Access2D<?>>, Access2D.Fillable<N extends java.lang.Number>, Access2D.Iterable2D<N extends java.lang.Number>, Access2D.Modifiable<N extends java.lang.Number>, Access2D.Visitable<N extends java.lang.Number>
Constructor and Description |
---|
AboveBelowStore(MatrixStore<N> base,
MatrixStore<N> below) |
Modifier and Type | Method and Description |
---|---|
MatrixStore<N> |
add(MatrixStore<N> addend) |
N |
aggregateAll(Aggregator aggregator) |
MatrixStore.Builder<N> |
builder() |
MatrixStore<N> |
conjugate()
Each call must produce a new instance.
|
PhysicalStore<N> |
copy()
Each call must produce a new instance.
|
long |
count() |
long |
countColumns() |
long |
countRows() |
double |
doubleValue(long index) |
double |
doubleValue(long row,
long column)
Extracts one element of this matrix as a double.
|
boolean |
equals(MatrixStore<N> other,
NumberContext context) |
boolean |
equals(java.lang.Object someObj) |
PhysicalStore.Factory<N,?> |
factory() |
N |
get(long index) |
N |
get(long row,
long column) |
int |
hashCode() |
boolean |
isAbsolute(long index) |
boolean |
isAbsolute(long row,
long column) |
boolean |
isLowerLeftShaded()
The entries below (left of) the first subdiagonal are zero - effectively an upper Hessenberg matrix.
|
boolean |
isSmall(long index,
double comparedTo) |
boolean |
isSmall(long row,
long column,
double comparedTo) |
boolean |
isUpperRightShaded()
The entries above (right of) the first superdiagonal are zero - effectively a lower Hessenberg matrix.
|
MatrixStore<N> |
multiply(Access1D<N> right) |
MatrixStore<N> |
multiplyLeft(Access1D<N> leftMtrx) |
MatrixStore<N> |
negate() |
MatrixStore<N> |
scale(N scalar) |
MatrixStore<N> |
subtract(MatrixStore<N> subtrahend) |
Scalar<N> |
toScalar(long row,
long column) |
java.lang.String |
toString() |
MatrixStore<N> |
transpose()
Each call must produce a new instance.
|
void |
visitAll(VoidFunction<N> visitor) |
void |
visitColumn(long row,
long column,
VoidFunction<N> visitor) |
void |
visitDiagonal(long row,
long column,
VoidFunction<N> visitor) |
void |
visitRange(long first,
long limit,
VoidFunction<N> visitor) |
void |
visitRow(long row,
long column,
VoidFunction<N> visitor) |
multiply, multiplyRight
isZero
isZero
public AboveBelowStore(MatrixStore<N> base, MatrixStore<N> below)
public double doubleValue(long row, long column)
Access2D
row
- A row index.column
- A column index.Access2D.doubleValue(long, long)
public N get(long row, long column)
public boolean isLowerLeftShaded()
MatrixStore
MatrixStore.isUpperRightShaded()
public boolean isUpperRightShaded()
MatrixStore
MatrixStore.isLowerLeftShaded()
public MatrixStore<N> multiply(Access1D<N> right)
public final PhysicalStore.Factory<N,?> factory()
public MatrixStore<N> add(MatrixStore<N> addend)
add
in interface MatrixStore<N extends java.lang.Number>
public N aggregateAll(Aggregator aggregator)
aggregateAll
in interface MatrixStore<N extends java.lang.Number>
public final MatrixStore.Builder<N> builder()
builder
in interface MatrixStore<N extends java.lang.Number>
public MatrixStore<N> conjugate()
MatrixStore
conjugate
in interface MatrixStore<N extends java.lang.Number>
public PhysicalStore<N> copy()
MatrixStore
copy
in interface MatrixStore<N extends java.lang.Number>
public long count()
public long countColumns()
public long countRows()
public double doubleValue(long index)
doubleValue
in interface Access1D<N extends java.lang.Number>
public final boolean equals(MatrixStore<N> other, NumberContext context)
equals
in interface MatrixStore<N extends java.lang.Number>
public final boolean equals(java.lang.Object someObj)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public boolean isAbsolute(long index)
isAbsolute
in interface Access1D.Elements
Scalar.isAbsolute()
public boolean isAbsolute(long row, long column)
isAbsolute
in interface Access2D.Elements
Scalar.isAbsolute()
public boolean isSmall(long index, double comparedTo)
isSmall
in interface Access1D.Elements
Access1D.Elements.isSmall(long, double)
public boolean isSmall(long row, long column, double comparedTo)
isSmall
in interface Access2D.Elements
Access2D.Elements.isSmall(long, long, double)
public MatrixStore<N> multiplyLeft(Access1D<N> leftMtrx)
multiplyLeft
in interface MatrixStore<N extends java.lang.Number>
public final MatrixStore<N> negate()
negate
in interface MatrixStore<N extends java.lang.Number>
public MatrixStore<N> scale(N scalar)
scale
in interface MatrixStore<N extends java.lang.Number>
public MatrixStore<N> subtract(MatrixStore<N> subtrahend)
subtract
in interface MatrixStore<N extends java.lang.Number>
public final java.lang.String toString()
toString
in class java.lang.Object
public MatrixStore<N> transpose()
MatrixStore
transpose
in interface MatrixStore<N extends java.lang.Number>
public void visitAll(VoidFunction<N> visitor)
visitAll
in interface Access1D.Visitable<N extends java.lang.Number>
public void visitColumn(long row, long column, VoidFunction<N> visitor)
visitColumn
in interface Access2D.Visitable<N extends java.lang.Number>
public void visitDiagonal(long row, long column, VoidFunction<N> visitor)
visitDiagonal
in interface Access2D.Visitable<N extends java.lang.Number>
public void visitRange(long first, long limit, VoidFunction<N> visitor)
visitRange
in interface Access1D.Visitable<N extends java.lang.Number>
public void visitRow(long row, long column, VoidFunction<N> visitor)
visitRow
in interface Access2D.Visitable<N extends java.lang.Number>