getDimensions method

List<int> getDimensions()

Gets the dimensions of the matrix

  • Note The dimensions are in the form row, col

Implementation

List<int> getDimensions() {
  List<int> dimensions = [_row, _col];
  return dimensions;
}