rangeUnchecked method

Matrix<T> rangeUnchecked(
  1. int rowStart,
  2. int rowEnd,
  3. int columnStart,
  4. int columnEnd,
)

Returns a mutable view onto the row and column ranges. The behavior is undefined if any of the ranges are out of bounds.

Implementation

Matrix<T> rangeUnchecked(
        int rowStart, int rowEnd, int columnStart, int columnEnd) =>
    rowStart == 0 &&
            rowEnd == rowCount &&
            columnStart == 0 &&
            columnEnd == colCount
        ? this
        : _rangeUnchecked(this, rowStart, rowEnd, columnStart, columnEnd);