polar calculates the left polar decomposition of a matrix.
Usage
polar(X)
Arguments
X
A matrix.
Value
P A \(n\) by \(n\) symmetric positive definite
matrix.
Z A \(n\) by \(p\) matrix with orthonormal rows.
Note that X == P %*% Z, up to numerical precision.
Details
polar Takes a matrix \(X\), of dimensions \(n\) by
\(p\), and returns two matrices \(P\) and \(Z\) such that
\(X = PZ\). \(P\) is a symmetric positive definite matrix of
dimension \(n\) by \(n\) and \(Z\) is an \(n\) by \(p\)
matrix with orthonormal rows.