Close
Close window
SingularValues - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

Student[LinearAlgebra]

SingularValues

compute the singular values of a Matrix

Calling Sequence

SingularValues( A, options )

Parameters

A

-

Matrix, list; Matrix whose singular values are required

Options

options: parameters; for a complete list, see LinearAlgebra[SingularValues]

Description

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·TransposeA or A·HermitianTransposeA (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=DiagonalMatrixS.

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] .

Examples

>

withStudentLinearAlgebra:

Example 1

>

AMatrix1.0,2.0,3.0,4.0

A1.02.03.04.0

(1)
>

SSingularValuesA

S5.4649857040.3659661916

(2)

Example 2

>

BMatrix4.575068354,4.024595950,3.730131837,0.4688151920,1.323592462,4.057919371,2.215017811,4.133758561,3.147236864

B4.575068354−4.024595950−3.7301318370.46881519201.3235924624.057919371−2.2150178114.1337585613.147236864

(3)
>

U,S,VtSingularValuesB,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

(4)
>

TDiagonalMatrixS

T9.4827620130.0.0.3.1966795240.0.0.1.112982108

(5)
>

NormU·T·VtB

1.115765771×10−8

(6)

Compatibility

The Student[LinearAlgebra][SingularValues] command was introduced in Maple 2021.

For more information on Maple 2021 changes, see Updates in Maple 2021 .


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /