pyrex.internal_functions.normalize¶
-
pyrex.internal_functions.
normalize
(vector)¶ Normalize the given vector.
- Parameters
- vectorarray_like
- Returns
- ndarray
Normalized form of vector.
Examples
>>> normalize([5,0,0]) array([1., 0., 0.])
>>> v = np.array([1,0,1]) >>> normalize(v) array([0.70710678, 0. , 0.70710678])