public final class IdentityStore<N extends java.lang.Number>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
IdentityStore.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 IdentityStore.Factory<java.math.BigDecimal> |
BIG |
static IdentityStore.Factory<ComplexNumber> |
COMPLEX |
static IdentityStore.Factory<java.lang.Double> |
PRIMITIVE |
Constructor and Description |
---|
IdentityStore(PhysicalStore.Factory<N,?> aFactory,
int dimension) |
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 index) |
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 IdentityStore<java.math.BigDecimal> |
makeBig(int dimension) |
static IdentityStore<ComplexNumber> |
makeComplex(int dimension) |
static IdentityStore<java.lang.Double> |
makePrimitive(int dimension) |
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() |
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 IdentityStore.Factory<java.math.BigDecimal> BIG
public static final IdentityStore.Factory<ComplexNumber> COMPLEX
public static final IdentityStore.Factory<java.lang.Double> PRIMITIVE
public IdentityStore(PhysicalStore.Factory<N,?> aFactory, int dimension)
public static IdentityStore<java.math.BigDecimal> makeBig(int dimension)
public static IdentityStore<ComplexNumber> makeComplex(int dimension)
public static IdentityStore<java.lang.Double> makePrimitive(int dimension)
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 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 MatrixStore<N> multiplyLeft(Access1D<N> leftMtrx)
multiplyLeft
in interface MatrixStore<N extends java.lang.Number>
public MatrixStore<N> multiply(Access1D<N> right)
public PhysicalStore<N> transpose()
MatrixStore
transpose
in interface MatrixStore<N extends java.lang.Number>
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 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 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 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>