matrix-p-norm-entrywise ( m p -- n ) (original) (raw)
matrix-p-norm-entrywise ( m p -- n )
Inputs
m | a matrix |
---|---|
p | a positive real number |
Outputs
n | a non-negative real number |
---|
Word description
Find the entry-wise norm of a matrix, in 𝑙ₚ (L^p) vector space.
Notes
This word is not an induced or Schatten norm, and it is distinct from all of matrix-l1-norm, matrix-l2-norm, matrix-l-infinity-norm.
Examples
USING: math.matrices prettyprint ; 4 4 1 2 matrix-p-norm-entrywise .
4.0
Definition
USING: kernel math.vectors sequences sequences.deep ;
: matrix-p-norm-entrywise ( m p -- n )
[ flatten1 V{ } like ] dip p-norm-default ; inline