Vector class

Implementers

Constructors

Vector.fromList(List<double> elements)
Vector.ones(int n)
Vector.zeros(int n)

Properties

elements List<double>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
no setter

Methods

asMatrix() Matrix
copy() Vector
dot(Vector v) double
norm() double
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(int i) Vector
scale(double x) Vector
subvector(int start, [int? end]) Vector
toString() String
A string representation of this object.
override

Operators

operator %(Vector v) double
operator +(Vector other) Vector
operator -(Vector other) Vector
operator ==(Object o) bool
The equality operator.
override
operator [](int i) double
operator []=(int i, double x) → void