Student[LinearAlgebra]
SingularValues
compute the singular values of a Matrix
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
SingularValues( A, options )
A
-
Matrix, list; Matrix whose singular values are required
options: parameters; for a complete list, see LinearAlgebra[SingularValues]
The SingularValues(A) function returns the singular values of Matrix A in a column Vector. The singular values are equal to the square roots of the (real) eigenvalues of A·Transpose⁡A or A·HermitianTranspose⁡A (see below). Since this product is either real-symmetric or Hermitian, and positive semi-definite, the eigenvalues are all real and non-negative, and so their square roots are also purely real.
When calling SingularValues(A) with output=['U','S','Vt'], the Matrix U, Vector S, and Matrix Vt satisfy U·T·Vt=A, where T=DiagonalMatrix⁡S.
The values of hardwarefloats (default false) and conjugate (default false) for the Student package can be set using the Student[SetDefault] command.
If the Matrix has an element that is not of type complex(numeric), the value of conjugate will be used to deduce if HermitianTranspose should be used. On the other hand, if all the elements are of type complex(numeric), then the regular transpose will be used if the elements are real-valued, and the Hermitian transpose if the elements are complex-valued.
For further information, see LinearAlgebra[SingularValues].
with⁡StudentLinearAlgebra:
Example 1
A≔Matrix⁡1.0,2.0,3.0,4.0
A≔1.02.03.04.0
S≔SingularValues⁡A
S≔5.4649857040.3659661916
Example 2
B≔Matrix⁡4.575068354,−4.024595950,−3.730131837,0.4688151920,1.323592462,4.057919371,−2.215017811,4.133758561,3.147236864
B≔4.575068354−4.024595950−3.7301318370.46881519201.3235924624.057919371−2.2150178114.1337585613.147236864
U,S,Vt≔SingularValues⁡B,output=U,S,Vt
U,S,Vt≔−0.7381898079−0.40565191140.53900123950.3306799655−0.9140152493−0.23500401010.58798517800.0047593463630.8088577004,9.4827620133.1966795241.112982108,−0.47714354400.61576890500.6270268681−0.71791103090.1384171711−0.68223488530.50689031400.7756734764−0.3760224302
T≔DiagonalMatrix⁡S
T≔9.4827620130.0.0.3.1966795240.0.0.1.112982108
Norm⁡U·T·Vt−B
1.115765773×10−8
The Student[LinearAlgebra][SingularValues] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
See Also
LinearAlgebra[SingularValues]
Matrix
Student[LinearAlgebra][Eigenvalues]
Student[SetDefault]
Vector
Download Help Document