Norms
Last updated
Last updated
Norm is the generalization of the notion of "length" to vectors, matrices and tensors.
A norm is any function that statisfies the following 3 conditions:
Triangular Inequality:
Linearity:
There are 2 reasons to use norms:
To estimate how "big" a vector or matrix or a tensor is.
To estimate "how close" one tensor is to another:
The euclidean norm is given by the below equation:
It is also called 2-norm or L2 norm. A vector of length one is said to be a unit vector.
There is a relation between euclidean norm and dot product.
Thus, we can observe that:
The length of a vector also equals the square root of the dot product of the vector with itself.
Consider the following complex number:
Then, absolute value of a complex number is given by
Partitioning the vectors making sure that corresponding sub-vectors have the same size.
Then, we take the dot product of the corresponding sub-vectors and add all those together.
Following details the algorithm to calculate dot product using slicing and dicing:
This is given by the following equation:
This is given the following equation:
∞-Norm is also called max-norm. Following is the given equation for it:
Frobenius Norm is calculated for matrices:
is also called the conjugate of . Following are the properties of absolute value of a complex number:
. This also means that the norm is positive definite.
. This means that the norm is homogenous.
. This means that the norm obeys triangle inequality.
Let . The (Euclidean) length of is given by:
Consider the dot product of 2 vectors and . The dot product can be given:
Also, and are not the same as denoted by the below equation: