Compute singular values and aligned singular vectors for a possibly rank-deficient matrix using NumPy.