ScalarListView class

Defines a view of scalar values over a Float32List that allows for a custom offset and stride.

Constructors

ScalarListView(int length, [int offset = 0, int stride = 0])
Create a new vector list with length elements.
ScalarListView.fromList(List<double> list, [int offset = 0, int stride = 0])
Create a new vector list from a list of vectors.
ScalarListView.view(Float32List buffer, [int offset = 0, int stride = 0])
Create a new stride list as a view of buffer. Optionally it is possible to specify a offset in the buffer and a stride between each vector.

Properties

buffer Float32List
The internal storage buffer of this list.
no setter
hashCode int
The hash code for this object.
no setterinherited
length int
The count of vectors in this list.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

load(int index) double
Retrieves the value at index.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
store(int index, double value) → void
Store value in the list at index.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) double
Retrieves the value at index.
operator []=(int index, double value) → void
Store value in the list at index.