Vocabularymath.
matricesInputsm | a matrix |
p | a positive real number |
Outputsn | a non-negative real number |
Word descriptionFind the norm (size) of a matrix in 𝑙ₚ (
L^p) vector space, usually written ∥・∥ₚ. For
p ≠ 1, 2, ∞, this is an "entry-wise" norm.
Notes• | User code should call the generic p-norm instead. |
• | This word is the matrix-specific variant of p-norm. |
• | This word is the p = q variant of matrix-p-q-norm. |
• | This word is intended for use with "flat" (2-dimensional) matrices. |
ExamplesCalls
l1-norm:
USING: math.matrices prettyprint ;
4 4 1 <matrix> 1 matrix-p-norm .
4
Falls back to
matrix-p-norm-entrywise:
USING: math.functions math.matrices prettyprint ;
2 2 3 <matrix> 1.5 matrix-p-norm 7.559 10e-4 ~ .
t
See alsomatrix-l1-norm,
matrix-l2-norm,
matrix-l-infinity-norm,
matrix-p-q-normDefinition