Lets say I have a vector v, and I want the unit vector, i.e. v has length 1.0 Is there a direct way to get that from numpy?
I want something like:
import numpy as np
v=np.arrange(3)
v_hat = v.norm()
Rather than,
length = np.linalg.norm(v)
v_hat = v / length