Matrix class Null safety

A matrix stored in the 15C's registers, with values held in the 15C's internal format, with ten decimal digits of mantissa.

Inheritance

Constructors

Matrix(String name)

Properties

columns → int
read-onlyoverride
hashCode → int
The hash code for this object.
read-onlyinherited
isLU ↔ bool
read / write
lcdString → String
read-only
length → int
Number of registers this matrix occupies
read-only
name → String
final
rows → int
read-onlyoverride
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
toStringDim → String
read-onlyoverride

Methods

checkIndices(int row, int col) → void
chsElements() → void
cloneRowSwaps() → List<int>
convertFromZTilde(Model15<ProgramOperation> m) → void
Convert from ZTilde to ZP
convertToZC() → void
The C(x,y) function: Convert a complex matrix from partitioned to "complex-like" form
convertToZP() → void
The P(x,y) function: Convert a complex matrix from "complex-like" form to partitioned form
convertToZTilde(Model15<ProgramOperation> m) → void
Convert from ZP form to ZTilde, that is,
copyFrom(Model15<ProgramOperation> m, Matrix other) → void
decodeJson(Map<String, dynamic> m) → void
dot(AMatrix a, AMatrix b) → void
Computes this = a dot b. r, a and b must already be properly dimensioned.
inherited
dotByP() → void
calculate this = this dot P. This is not to be confused with P dot this!
equivalent(AMatrix other) → bool
inherited
formatValueWith(String fmt(Value)) → String
inherited
get(int row, int col) → Value
override
getF(int row, int col) → double
inherited
getP(int r, int c) → bool
Get the permutation matrix P value at the given row, column. Since it's a permuted identity matrix, the value is 0 or 1, so we give it as a bool. A P matrix only exists for an LU-decomposed matrix.
identity() → void
Make this the identity matrix
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
residual(AMatrix a, AMatrix b) → void
Computes this = this - a dot b. r, a and b must already be properly dimensioned.
inherited
resize(Model15<ProgramOperation> m, int rows, int columns) → void
set(int row, int col, Value v) → void
override
setF(int row, int col, double d) → void
inherited
swapRowsLU(int r1, int r2) → void
Swap rows in a matrix holding an LU decomposition.
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited
transpose() → void
visit(void f(int r, int c)) → void
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited