pub fn diagonal_span(offset: i64, _: [usize; 2]) -> (usize, usize, usize)Expand description
Where diagonal offset of a matrix of rows by cols starts, as a row and a column, and its length. A positive offset starts further along the columns. A negative one starts further down the rows.