frob function

double frob(
  1. List<double> a
)

Returns Frobenius norm of a mat2

@param {ReadonlyMat2} a the matrix to calculate Frobenius norm of @returns {Number} Frobenius norm

Implementation

double frob(List<double> a) {
  return hypot([a[0], a[1], a[2], a[3]]);
}