Vector class

Constructors

Vector([List<num>? elements])
Vector.fromJson(dynamic list)
factory

Properties

elements List<num>
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dot(Vector otherVector) double
insert(dynamic insertIdx, dynamic val) → dynamic
magnitude() double
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
positionForIndex(dynamic index) int
similarity(dynamic otherVector) double
toArray() List<num>
toJson() List<num>
toString() String
A string representation of this object.
inherited
upsert(dynamic insertIdx, dynamic val, [UpsertFn? fn]) → dynamic

Operators

operator ==(Object other) bool
The equality operator.
override