max property

double get max

获取矩阵的最大值

Implementation

double get max {
  double index = matrix[0][0];
  for (int i = 0; i < rowCount; i++) {
    for (int j = 0; j < columnCount; j++) {
      if (matrix[i][j] > index) {
        index = matrix[i][j];
      }
    }
  }
  return index;
}