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 += _m3storage[0].abs();
    row_norm += _m3storage[1].abs();
    row_norm += _m3storage[2].abs();
    norm = row_norm > norm ? row_norm : norm;
  }
  {
    double row_norm = 0.0;
    row_norm += _m3storage[3].abs();
    row_norm += _m3storage[4].abs();
    row_norm += _m3storage[5].abs();
    norm = row_norm > norm ? row_norm : norm;
  }
  {
    double row_norm = 0.0;
    row_norm += _m3storage[6].abs();
    row_norm += _m3storage[7].abs();
    row_norm += _m3storage[8].abs();
    norm = row_norm > norm ? row_norm : norm;
  }
  return norm;
}