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 that have a size of vectorLength. Optionally it is possible to specify an offset in the buffer and a stride between each vector.
ScalarListView.fromList(List<double> list, [ int offset = 0, int stride = 0 ])
Create a new vector list from a list of vectors that have a size of vectorLength. Optionally it is possible to specify an offset in the buffer and a stride between each vector.
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.
read-only
length int
The count of vectors in this list.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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