Matrix<T> constructor

Matrix<T>(
  1. int m,
  2. int n, {
  3. ({int x, int y}) offset = oneIndexedMatrixOffset,
})

Implementation

Matrix(
  int m,
  int n, {
  this.offset = oneIndexedMatrixOffset,
})  : dimensions = (m, n),
      _strides = (m, 1),
      _entries = _Array<T>(m * n, offset: 0);