rowNorm function Null safety

double rowNorm(
  1. AMatrix mat
)

Implementation

double rowNorm(AMatrix mat) {
  double result = 0;
  for (int r = 0; r < mat.rows; r++) {
    double sum = 0;
    for (int c = 0; c < mat.columns; c++) {
      sum += mat.getF(r, c).abs();
    }
    result = max(result, sum);
  }
  return result;
}