svdvals
svdvals(A)
Input: A · Output: no output
What it is
The singular values of A (any real r×c matrix) as a Vec, descending, of length min(r,c): svdvals(diag([3, 2, 1])) is [3, 2, 1]. The same backends as svd, with the vectors not requested from the small-matrix routine (the blocked routine used from 128 rows and columns has no values-only path, so there the vectors are computed and dropped and the saving is small); the values agree with those of svd. Errors: an empty or non-finite matrix, complex input.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
svdvals(A) | A matrix, Vec, or vectornot documented yet | not documented yet | The same backends as svd, with the vectors not requested from the small-matrix routine (the blocked routine used from 128 rows and columns has no values-only path, so there the vectors are computed and dropped and the saving is small); the values agree with those of svd. Errors: an empty or non-finite matrix, complex input. |
Examples
No documentation example calls this form yet. The Core maths chapter is where one belongs.