infinityNorm method

double infinityNorm()

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

Implementation

double infinityNorm() {
  var norm = 0.0;
  {
    var 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;
  }
  {
    var 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;
  }
  {
    var 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;
}