how to dfind the 1-norm of a vector in numpy code example
Example 1: norm complex numpy
#c is a complex number
np.linalg.norm(c)
#or
np.absolute(c)
Example 2: p-norm of a vector python
np.sqrt(np.sum(np.power(x, 2)))
#c is a complex number
np.linalg.norm(c)
#or
np.absolute(c)
np.sqrt(np.sum(np.power(x, 2)))