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

SimonPalmer simon.palmer@gmail....
Wed Aug 27 16:00:01 CDT 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