absoluteError method

double absoluteError (
  1. Matrix2 correct
)

Returns absolute error between this and correct

Implementation

double absoluteError(Matrix2 correct) {
  final double this_norm = infinityNorm();
  final double correct_norm = correct.infinityNorm();
  final double diff_norm = (this_norm - correct_norm).abs();
  return diff_norm;
}