What is the max norm of a vector?
The norm of a vector v is mathematically defined as follows:
When q=1, the vector norm is called the L1 norm or the Manhattan norm. So, the L1 norm of a vector is mathematically defined as follows:
And when q=2, the vector norm is called the L2 norm or the Euclidean norm. So, the L2 norm of a vector is mathematically defined as follows:
The max norm of a vector is defined as follows:
In other words, if we take the absolute values of all the elements of a vector, then the max norm of the vector is the element the absolute value of which is the maximum.
Let’s look at an example. Let’s say v is a vector as given below:
The max norm of the vector v will be:
How to calculate the max norm of a vector using Python?
We can use the following Python code to calculate the max norm of a vector using NumPy…






0 Comments