The matrix norm, which can be the 1-norm ("1"), infinity-norm ("I"), Frobenius norm ("F"), maximum modulus of all the entries ("M"), or the spectral norm ("2"), as determined by the value of type.
# S4 method for class 'Expression,character'
norm(x, type)
An Expression.
A character indicating the type of norm desired.
"O", "o" or "1" specifies the 1-norm (maximum absolute column sum).
"I" or "i" specifies the infinity-norm (maximum absolute row sum).
"F" or "f" specifies the Frobenius norm (Euclidean norm of the vectorized x
).
"M" or "m" specifies the maximum modulus of all the elements in x
.
"2" specifies the spectral norm, which is the largest singular value of x
.
An Expression representing the norm of the input.
The p_norm
function calculates the vector p-norm.