norm.Lp: Element-wise Matrix Norm

View source: R/utility.R

norm.LpR Documentation

Element-wise Matrix Norm

Description

Compute element-wise matrix Lp-norm. This is a helper function to shrinkage().

Usage

norm.Lp(x, p = 1)

Arguments

x

a matrix or Matrix.

p

numeric(1), the p for defining the Lp norm.

Value

numeric(1), the absolute sum of all elements.


epca documentation built on July 26, 2023, 5:47 p.m.