Array class

Constructors

Array({required List<List<double>> values, Tuple2<int, int>? shape})
Array.empty()
factory
Array.fromValue(double val, {required Tuple2<int, int> shape})
factory
Array.fromVectorList(List<Vector3> list)
factory
Array.identity(int size)
factory
Array.nonSquareIdentity({required Tuple2<int, int> shape})
factory
Array.ones({required Tuple2<int, int> shape})
factory
Array.zeros({required Tuple2<int, int> shape})
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape ↔ Tuple2<int, int>
getter/setter pair
T → Array
no setter
transposed → Array
no setter
values ↔ List<List<double>>
getter/setter pair

Methods

abs() → Array
applyFunction(double func(double)) → Array
copy() → Array
flat() → List<double>
getColumn(int j) → List<double>
getDeterminent() → double
getInverse() → Array
getRow(int i) → List<double>
getValue(Tuple2<int, int> ij) → double
getValues() → List<List<double>>
map(double mappingFunc(double, Tuple2<int, int>)) → Array
matMul(Array other) → Array
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reshape(int m, int n) → Array
setColumn(int i, List<double> col) → void
setRow(int i, List<double> row) → void
setValue(Tuple2<int, int> ij, double value) → void
sign() → Array
toString({int precision = 6}) → String
A string representation of this object.
override

Operators

operator *(dynamic other) → Array
operator +(dynamic other) → Array
operator -(dynamic other) → Array
operator /(dynamic other) → Array
operator ==(Object other) → bool
The equality operator.
inherited
operator [](Tuple2<int, int> ij) → double
operator []=(Tuple2<int, int> ij, double val) → void