Answers for "p-norm of a vector python"

0

p-norm of a vector python

np.linalg.norm(x, 2)
Posted by: Guest on November-29-2020
0

p-norm of a vector python

np.sqrt(np.sum(np.power(x, 2)))
Posted by: Guest on November-29-2020

Python Answers by Framework

Browse Popular Code Answers by Language