rowMajor property

Iterable<T> rowMajor

Returns an iterable over the values of this Matrix in row-by-row.

Implementation

Iterable<T> get rowMajor sync* {
  for (var r = 0; r < rowCount; r++) {
    for (var c = 0; c < colCount; c++) {
      yield getUnchecked(r, c);
    }
  }
}