Computational Science, Numpy, Linear Algebra, Numerical Analysis, Python Programming.
most common is called the L2 norm. The L2 norm of a vector v is denoted by: In general, the p-norm, Lp, of a vector is : Now we try to transpose the row vector we defined above into a column vector and calculate the L1, L2. from numpy.linalg import norm new_vector = vector_row.T print(new_vector)