Click or drag to resize

Vector Norms

Hereinafter the following convention is used:

  • VSmall Greek – small Greek letters are used to denote scalars;

  • VSmall Latin – small Latin letters are used to denote vectors;

  • VCapital Latin – capital Latin letters are used to denote matrices.

This topic contains the following sections:

Methods

This section describes methods applied to compute vector norm.

Operation

Description

Performance

L1 norm

(Taxicab norm, Manhattan norm)

Computes the L1 norm of the vector.

VL 1 Norm

methodL1Norm

L2 norm

(Euclidean norm)

Computes the L2 norm of the vector.

VL 2 Norm

methodL2Norm

p-norm

Computes the p-norm of the vector.

VPNorm

methodPNorm(Double)

infinity norm

Computes the infinity norm of the vector.

VInf Norm

methodL2Norm

Besides there is a common method Norm that allows to specify the desirable vector norm as a parameter. It compute any of the L1, L2 or infinity norm of the vector.

methodNorm(VectorNormType)

See Also