sqroot

W*W’ hermitian factorization

Calling Sequence

sqroot(X)

Arguments

:X symmetric non negative definite real or complex matrix :

Description

returns W such that X=W*W’ (uses SVD).

Examples

X=`rand`_(5,2)*`rand`_(2,5);X=X*X';
W=sqroot(X)
`norm`_(W*W'-X,1)

X=`rand`_(5,2)+%i*`rand`_(5,2);X=X*X';
W=sqroot(X)
`norm`_(W*W'-X,1)

See Also

  • chol Cholesky factorization
  • svd singular value decomposition

Table Of Contents

This Page