public final class ZeroStore<N extends java.lang.Number>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ZeroStore.Factory<N extends java.lang.Number> |
MatrixStore.Builder<N extends java.lang.Number>, MatrixStore.ElementsConsumer<N extends java.lang.Number>, MatrixStore.ElementsSupplier<N extends java.lang.Number>
Access2D.Elements, 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>
Modifier and Type | Field and Description |
---|---|
static ZeroStore.Factory<java.math.BigDecimal> |
BIG |
static ZeroStore.Factory<ComplexNumber> |
COMPLEX |
static ZeroStore.Factory<java.lang.Double> |
PRIMITIVE |
Constructor and Description |
---|
ZeroStore(PhysicalStore.Factory<N,?> factory,
int rows,
int columns) |
Modifier and Type | Method and Description |
---|---|
MatrixStore<N> |
add(MatrixStore<N> addend) |
N |
aggregateAll(Aggregator aggregator) |
MatrixStore.Builder<N> |
builder() |
PhysicalStore<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 anInd) |
double |
doubleValue(long aRow,
long aCol)
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 aRow,
long aCol) |
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.
|
static ZeroStore<java.math.BigDecimal> |
makeBig(int rows,
int columns) |
static ZeroStore<ComplexNumber> |
makeComplex(int rows,
int columns) |
static ZeroStore<java.lang.Double> |
makePrimitive(int rows,
int columns) |
ZeroStore<N> |
multiply(Access1D<N> right) |
ZeroStore<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() |
PhysicalStore<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 static final ZeroStore.Factory<java.lang.Double> PRIMITIVE
public static final ZeroStore.Factory<java.math.BigDecimal> BIG
public static final ZeroStore.Factory<ComplexNumber> COMPLEX
public ZeroStore(PhysicalStore.Factory<N,?> factory, int rows, int columns)
public static ZeroStore<java.math.BigDecimal> makeBig(int rows, int columns)
public static ZeroStore<ComplexNumber> makeComplex(int rows, int columns)
public static ZeroStore<java.lang.Double> makePrimitive(int rows, int columns)
public MatrixStore<N> add(MatrixStore<N> addend)
add
in interface MatrixStore<N extends java.lang.Number>
public PhysicalStore<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 double doubleValue(long anInd)
doubleValue
in interface Access1D<N extends java.lang.Number>
public double doubleValue(long aRow, long aCol)
Access2D
aRow
- A row index.aCol
- A column index.public N get(long aRow, long aCol)
public boolean isLowerLeftShaded()
MatrixStore
MatrixStore.isUpperRightShaded()
public boolean isUpperRightShaded()
MatrixStore
MatrixStore.isLowerLeftShaded()
public ZeroStore<N> multiplyLeft(Access1D<N> leftMtrx)
multiplyLeft
in interface MatrixStore<N extends java.lang.Number>
public MatrixStore<N> scale(N scalar)
scale
in interface MatrixStore<N extends java.lang.Number>
public PhysicalStore<N> transpose()
MatrixStore
transpose
in interface MatrixStore<N extends java.lang.Number>
public final PhysicalStore.Factory<N,?> factory()
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 long count()
public long countColumns()
public long countRows()
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 final MatrixStore<N> negate()
negate
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 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>