HalfVector class

Represents a vector of half-precision float values.

Available extensions

Constructors

HalfVector.new(List<double> _vec)
Creates a new HalfVector from a list of double values.
const
HalfVector.fromBinary(Uint8List bytes)
Creates a HalfVector from its binary representation.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() HalfVector

Available on HalfVector, provided by the CloneHalfVector extension

Creates a deep copy of the HalfVector, mutations to the original will not affect the copy.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBinary() Uint8List
Converts the HalfVector to its binary representation.
toJson() List<double>

Available on HalfVector, provided by the HalfVectorJsonExtension extension

Returns a serialized version of the HalfVector as a List<double>.
toList() List<double>
Returns the half-precision vector as a list of double values.
toString() String
A string representation of this object.
override

Operators

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