absoluteError method Null safety
- Matrix2 correct
Returns absolute error between this and correct
Implementation
double absoluteError(Matrix2 correct) {
final this_norm = infinityNorm();
final correct_norm = correct.infinityNorm();
final diff_norm = (this_norm - correct_norm).abs();
return diff_norm;
}