one_norm: Matrix Norms

Description Usage Arguments Details Value Examples

Description

Use one_norm to get the p=1 norm of a matrix
Use max_norm to get the maximum norm of a matrix
Use inf_norm to get the infinit norm of a matrix

Usage

1

Arguments

x

a numeric matrix

Details

one norm is the maximum absolute column sum of a matrix
max norm is the elementwise norm
infinit norm is the maximum absolute row sum of a matrix

Value

the calculated norm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# matrix
M = matrix(1:9, 3, 3)

# one norm
one_norm(M)

# max norm
max_norm(M)

# inf norm
inf_norm(M)

gastonstat/matrixkit documentation built on May 16, 2019, 5:45 p.m.