infinityNorm method Null safety
Returns infinity norm of the matrix. Used for numerical analysis.
Implementation
double infinityNorm() {
var norm = 0.0;
{
var rowNorm = 0.0;
rowNorm += _m2storage[0].abs();
rowNorm += _m2storage[1].abs();
norm = rowNorm > norm ? rowNorm : norm;
}
{
var rowNorm = 0.0;
rowNorm += _m2storage[2].abs();
rowNorm += _m2storage[3].abs();
norm = rowNorm > norm ? rowNorm : norm;
}
return norm;
}