rowRange method

Matrix<T> rowRange(
  1. int rowStart, [
  2. int? rowEnd
])

Returns a mutable view onto the row range. Throws a RangeError, if rowStart or rowEnd are out of bounds.

Implementation

Matrix<T> rowRange(int rowStart, [int? rowEnd]) {
  rowEnd = RangeError.checkValidRange(
      rowStart, rowEnd, rowCount, 'rowStart', 'rowEnd');
  return rowRangeUnchecked(rowStart, rowEnd);
}