I am learning SVD by following this MIT course
The lecturer is trying to normalize a vector
$${\begin{bmatrix} -3\\ 1\\ \end{bmatrix}}$$
to
$${\begin{bmatrix} \dfrac{-3}{\sqrt{10}}\\ \dfrac{1}{\sqrt{10}}\\ \end{bmatrix}}$$
I tried this with Python NumPy
np.linalg.norm(v1,ord=2,axis=1,keepdims=True)
and got
array([[3.],
[1.]])
I would like to get something like this
[[-0.9486833 ],
[ 0.31622777]]
is there a way with Python (for instance, NumPy) to do the job? any other 3rd party library is also appreciated.