SVD dimensions #8418
Answered
by
jakevdp
EngineerKhan
asked this question in
Q&A
SVD dimensions
#8418
-
Asking it out of curiosity. If I apply SVD as:
Why does it give |
Beta Was this translation helpful? Give feedback.
Answered by
jakevdp
Nov 1, 2021
Replies: 1 comment
-
I suspect the reason for this is primarily memory savings: if you're doing a large SVD, it's wasteful to return a large matrix that is by definition mostly zeros, when (1) many applications need just the singular values, and (2) it's straightforward to construct the full matrix if needed. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
EngineerKhan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
b
is returned as a one-dimensional array of singular values, following the standard convention used by NumPy and other numerical computing packages.I suspect the reason for this is primarily memory savings: if you're doing a large SVD, it's wasteful to return a large matrix that is by definition mostly zeros, when (1) many applications need just the singular values, and (2) it's straightforward to construct the full matrix if needed.