normFrobenius property
double
get
normFrobenius
Returns the Frobenius norm: The square root of the sum of squares of all elements of this Matrix.
Implementation
double get normFrobenius {
var result = 0.0;
for (var c = 0; c < colCount; c++) {
for (var r = 0; r < rowCount; r++) {
result = hypot(result, getUnchecked(r, c));
}
}
return result;
}