Pnorm¶
This function only supports the computation of pnorms where p is even and greater than zero.
This is a function that computes the pnorm of a tensor. The function vectorizes the tensor input, and computes the pnorm over the axis/axes specified by the user. By default, if no axis/axes are specified, the pnorm of the entire tensor is computed.
- omtools.std.pnorm.pnorm(expr, pnorm_type=2, axis=None)¶
This function computes the pnorm
- Parameters
- expr: Variable
The Variable(s) over which to take the minimum
- pnorm_type: int
This specifies what pnorm to compute. Values must be nonzero positive and even.
- axis: int
Specifies the axis over which to take the pnorm
Examples for all the possible use cases are provided below.