norms | R Documentation |
Compute row and column p
-norms.
row_norms(x, p = 2)
col_norms(x, p = 2)
x |
a sparse |
p |
a numeric at least one. Using |
A vector with the row or column p
-norms for the given matrix.
x <- matrix(1 : 9, 3L)
## Row lengths:
row_norms(x)
## Column maxima:
col_norms(x, Inf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.