infinityNorm method

double infinityNorm ()

Returns infinity norm of the matrix. Used for numerical analysis.

Implementation

double infinityNorm() {
  double norm = 0.0;
  {
    double row_norm = 0.0;
    row_norm += _m2storage[0].abs();
    row_norm += _m2storage[1].abs();
    norm = row_norm > norm ? row_norm : norm;
  }
  {
    double row_norm = 0.0;
    row_norm += _m2storage[2].abs();
    row_norm += _m2storage[3].abs();
    norm = row_norm > norm ? row_norm : norm;
  }
  return norm;
}