norms {slam} | R Documentation |
Row and Column Norms
Description
Compute row and column p
-norms.
Usage
row_norms(x, p = 2)
col_norms(x, p = 2)
Arguments
x |
a sparse |
p |
a numeric at least one. Using |
Value
A vector with the row or column p
-norms for the given matrix.
Examples
x <- matrix(1 : 9, 3L)
## Row lengths:
row_norms(x)
## Column maxima:
col_norms(x, Inf)
[Package slam version 0.1-51 Index]