[Numpy-discussion] normalizing a vector so it has magnitude 1

SimonPalmer simon.palmer at gmail.com
Wed Aug 27 17:00:01 EDT 2008


bit of a newb question, is there a method for normalising a 1D vector
so it ends up with magnitude 1?

I can do it manually but I was hoping there was a neat numpy - or
scipy -  trick.  I've been web surfing but nothing really leaps out



More information about the NumPy-Discussion mailing list