FVector class
Simd based column vector type.
Constructors
- FVector.fromBuffer(int nRows, Float32x4List columnData)
-
FVector.fromJson(Map<
String, dynamic> json) -
FVector.fromList(List<
double> list) - FVector.generate(int length, double generator(int index))
-
factory
-
FVector.join(List<
FVector> vectors) -
Builds a new FVector composed from multiple other FVector's
factory
- FVector.zero(int nRows)
Properties
- columnData → Float32x4List
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
number of items
no setter
- listView ↔ Float32List
-
latefinal
- nRows → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- single → double
-
Checks that this vector has only one element, and returns that element.
no setter
Methods
-
abs(
) → FVector - Calculates the absolute value of each element (immutable)
-
applied(
double func(double), [Float32x4 funcSIMD(Float32x4)?]) → FVector -
Applies function
func
to each element (immutable) -
apply(
double func(double), [Float32x4 funcSIMD(Float32x4)?]) → void -
Applies function
func
to each element (mutable) -
concat(
FVector other) → FVector - concatenate two vectors (immutable)
-
equals(
FVector other) → bool - Checks if two vectors are identical.
-
interleavedSplit(
int count) → List< FVector> -
Breaks the vector into
count
different vectors. -
largestElement(
) → double -
multiplyTransposed(
FVector other) → FLeftMatrix -
Multiplies this vector by the transposed
other
vector. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scale(
double factor) → void - Multiplies the vector by scalar (mutable)
-
scaled(
double factor) → FVector - Multiplies the vector by scalar (immutable)
-
slice(
int offset, int length) → FVector -
smallestElement(
) → double -
sqrt(
) → FVector - Calculates the square-root of each element (immutable)
-
squared(
) → FVector - Multiplies each element by itself (immutable)
-
sumElements(
) → double - Calculates the sum of all elements.
-
toJson(
) → Map< String, dynamic> - stores this vector in json format
-
toList(
) → List< double> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator *(
FVector other) → FVector -
operator +(
FVector other) → FVector -
operator -(
FVector other) → FVector -
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → double -
operator []=(
int index, double value) → void