call method

Matrix<T> call(
  1. int i,
  2. int j, {
  3. int? ld,
  4. ({int x, int y})? offset,
})

Implementation

Matrix<T> call(
  int i,
  int j, {
  int? ld,
  ({int x, int y})? offset,
}) {
  final entries = _entries(_getIndex(i, j), offset: 0);

  return Matrix._(
    entries,
    (ld ?? this.ld, dimensions.$2),
    (ld ?? this.ld, 1),
    offset: offset ?? this.offset,
  );
}