Matrix norm. Equivalent to R's norm().
norm()
Returns NaN if the matrix contains NaN. For type: "2", an infinite element is an error.
NaN
type: "2"
A matrix (array of rows).
See NormOptions.
The norm of x.
x
norm([[1, -2], [3, 4]]); // 6 (one norm)norm([[1, -2], [3, 4]], { type: "I" }); // 7norm([[1, -2], [3, 4]], { type: "F" }); // 5.477225575051661 Copy
norm([[1, -2], [3, 4]]); // 6 (one norm)norm([[1, -2], [3, 4]], { type: "I" }); // 7norm([[1, -2], [3, 4]], { type: "F" }); // 5.477225575051661
Matrix norm. Equivalent to R's
norm().Returns
NaNif the matrix containsNaN. Fortype: "2", an infinite element is an error.