toArray method
array
- (optional) array to store the resulting vector in. If
not given a new array will be created.
offset
- (optional) offset in the array at which to put the
result.
Writes the elements of this matrix to an array in column-major format.
Implementation
List<double> toArray(List<double> array, {int offset = 0}) {
final te = storage;
array[offset] = te[0];
array[offset + 1] = te[1];
array[offset + 2] = te[2];
array[offset + 3] = te[3];
array[offset + 4] = te[4];
array[offset + 5] = te[5];
array[offset + 6] = te[6];
array[offset + 7] = te[7];
array[offset + 8] = te[8];
return array;
}