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
lengthelements that have a size ofvectorLength. Optionally it is possible to specify anoffsetin the buffer and astridebetween 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 anoffsetin the buffer and astridebetween 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 aoffsetin thebufferand astridebetween 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
valuein the list atindex. -
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
valuein the list atindex. -
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited