colRange method

Matrix<T> colRange(
  1. int columnStart, [
  2. int? columnEnd
])

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

Implementation

Matrix<T> colRange(int columnStart, [int? columnEnd]) {
  columnEnd = RangeError.checkValidRange(
      columnStart, columnEnd, colCount, 'columnStart', 'columnEnd');
  return colRangeUnchecked(columnStart, columnEnd);
}