penorms: Parallelized functions for different norms
Description
These functions compute the L-1, L-2 and L-infinity norms for 2 and 3 dimensional vectors. These functions are parallelized, that is you can pass several vectors at once.
Usage
penorm21(x, y)
penorm2infi(x, y)
penorm2(x, y)
penorms2(x, y)
penorm31(x, y, z)
penorm3infi(x, y, z)
penorm3(x, y, z)
penorms3(x, y, z)
Arguments
x
The vector of the first coordinates.
y
The vector of the second coordinates.
z
The vector of the third coordinates.
Value
A vector of norms.
Details
The functions penorm21 and penorm31 return the L-1 norm for 2 and 3 dimensional vectors.
The functions penorm2infi and penorm3infi return the L-infinity norm for 2 and 3 dimensional vectors.
The functions penorm2 and penorm3 return the squared L-2 norms for 2 and 3 dimensional vectors.
The functions penorms2 and penorms3 return the L-2 norms for 2 and 3 dimensional vectors.