Algosim documentation: SingularValues

SingularValues

Computes the singular values of a matrix.

Syntax

Description

If A is a matrix, then SingularValues(A) returns the vector with the singular values of A sorted by absolute value, from greatest to smallest.

Examples

A ≔ ❨❨5, 0, 2, 3, 1❩, ❨1, 4, 0, 1, 0❩, ❨0, 5, 8, 3, 1❩, ❨−1, 2, 5, 3, 6❩, ❨1, 5, 3, 2, 0❩❩
⎛ 5   0   2   3   1⎞
⎜ 1   4   0   1   0⎟
⎜ 0   5   8   3   1⎟
⎜−1   2   5   3   6⎟
⎝ 1   5   3   2   0⎠
SingularValues(A)
 ⎛ 13.9685324941 ⎞
 ⎜ 5.89712334636 ⎟
e⎜ 5.43691173126 ⎟
 ⎜ 3.24627519612 ⎟
 ⎝0.0756596059932⎠

See also