Compute element-wise matrix Lp-norm. This is a helper function to shrinkage().
shrinkage()
norm.Lp(x, p = 1)
x
a matrix or Matrix.
matrix
Matrix
p
numeric(1), the p for defining the Lp norm.
numeric(1)
numeric(1), the absolute sum of all elements.