MutableMatrix class abstract
A mutable copy of a Matrix for in-place numerical operations.
Constructors
Properties
-
asFlattenedList
→ List<
double> -
Mutable row-major view of all matrix elements.
no setter
- columnCount → int
-
Number of columns.
no setter
- dtype → DType
-
Numeric type used to store the matrix elements.
no setter
-
first
→ Iterable<
double> -
The first element.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether this collection has no elements.
no setterinherited
- isNotEmpty → bool
-
Whether this collection has at least one element.
no setterinherited
-
iterator
→ Iterator<
Iterable< double> > -
A new
Iteratorthat allows iterating the elements of thisIterable.no setterinherited -
last
→ Iterable<
double> -
The last element.
no setterinherited
- length → int
-
The number of elements in this Iterable.
no setterinherited
- rowCount → int
-
Number of rows.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
single
→ Iterable<
double> -
Checks that this iterable has only one element, and returns that element.
no setterinherited
Methods
-
addScaled(
Object other, num factor) → MutableMatrix -
Adds
othermultiplied byfactorto this matrix in place. -
any(
bool test(Iterable< double> element)) → bool -
Checks whether any element of this iterable satisfies
test.inherited -
cast<
R> () → Iterable< R> -
A view of this iterable as an iterable of
Rinstances.inherited -
contains(
Object? element) → bool -
Whether the collection contains an element equal to
element.inherited -
differenceNorm(
Object other) → double -
Returns the Frobenius norm of the difference from
otherwithout creating an intermediate matrix. -
elementAt(
int index) → Iterable< double> -
Returns the
indexth element.inherited -
every(
bool test(Iterable< double> element)) → bool -
Checks whether every element of this iterable satisfies
test.inherited -
expand<
T> (Iterable< T> toElements(Iterable<double> element)) → Iterable<T> -
Expands each element of this Iterable into zero or more elements.
inherited
-
firstWhere(
bool test(Iterable< double> element), {Iterable<double> orElse()?}) → Iterable<double> -
The first element that satisfies the given predicate
test.inherited -
fold<
T> (T initialValue, T combine(T previousValue, Iterable< double> element)) → T -
Reduces a collection to a single value by iteratively combining each
element of the collection with an existing value
inherited
-
followedBy(
Iterable< Iterable< other) → Iterable<double> >Iterable< double> > -
Creates the lazy concatenation of this iterable and
other.inherited -
forEach(
void action(Iterable< double> element)) → void -
Invokes
actionon each element of this iterable in iteration order.inherited -
join(
[String separator = ""]) → String -
Converts each element to a String and concatenates the strings.
inherited
-
lastWhere(
bool test(Iterable< double> element), {Iterable<double> orElse()?}) → Iterable<double> -
The last element that satisfies the given predicate
test.inherited -
map<
T> (T toElement(Iterable< double> e)) → Iterable<T> -
The current elements of this iterable modified by
toElement.inherited -
multiplyInto(
Object other, MutableMatrix destination) → MutableMatrix -
Writes the matrix product of this matrix and
otherintodestination. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reduce(
Iterable< double> combine(Iterable<double> value, Iterable<double> element)) → Iterable<double> -
Reduces a collection to a single value by iteratively combining elements
of the collection using the provided function.
inherited
-
scale(
num factor) → MutableMatrix -
Multiplies every element by
factorin place. -
singleWhere(
bool test(Iterable< double> element), {Iterable<double> orElse()?}) → Iterable<double> -
The single element that satisfies
test.inherited -
skip(
int count) → Iterable< Iterable< double> > -
Creates an Iterable that provides all but the first
countelements.inherited -
skipWhile(
bool test(Iterable< double> element)) → Iterable<Iterable< double> > -
Creates an
Iterablethat skips leading elements whiletestis satisfied.inherited -
take(
int count) → Iterable< Iterable< double> > -
Creates a lazy iterable of the
countfirst elements of this iterable.inherited -
takeWhile(
bool test(Iterable< double> element)) → Iterable<Iterable< double> > -
Creates a lazy iterable of the leading elements satisfying
test.inherited -
toList(
{bool growable = true}) → List< Iterable< double> > -
Creates a List containing the elements of this Iterable.
inherited
-
toMatrix(
) → Matrix - Creates an independent immutable matrix copy of the current values.
-
toSet(
) → Set< Iterable< double> > -
Creates a Set containing the same elements as this iterable.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
where(
bool test(Iterable< double> element)) → Iterable<Iterable< double> > -
Creates a new lazy Iterable with all elements that satisfy the
predicate
test.inherited -
whereType<
T> () → Iterable< R> -
Creates a new lazy Iterable with all elements that have type
T.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → Iterable< double> -
Returns the row at
index.