diagonals property

Iterable<Vector<T>> diagonals

Returns an iterable over the diagonals of this Matrix.

Implementation

Iterable<Vector<T>> get diagonals sync* {
  for (var d = -colCount + 1; d < rowCount; d++) {
    yield diagonalUnchecked(d);
  }
}