elements property

Iterable elements

Getter to retrieve an iterable over all elements in the matrix, regardless of their row or column.

Example usage:

final matrix = Matrix([[1, 2], [3, 4]]);
matrix.elements.forEach(print); // Prints 1, 2, 3, 4

Implementation

Iterable<dynamic> get elements => _VectorElementIterable(this);