rows property

Iterable<List> get rows

Getter to retrieve row-wise iteration over the matrix. It returns an iterable of rows, where each row is a list of elements.

Example usage:

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

Implementation

Iterable<List<dynamic>> get rows => _MatrixIterable(this, columnMajor: false);