polar {tensr} | R Documentation |
The left polar decomposition.
Description
polar
calculates the left polar decomposition of a matrix.
Usage
polar(X)
Arguments
X |
A matrix. |
Details
polar
Takes a matrix , of dimensions
by
, and returns two matrices
and
such that
.
is a symmetric positive definite matrix of
dimension
by
and
is an
by
matrix with orthonormal rows.
Value
P
A by
symmetric positive definite
matrix.
Z
A by
matrix with orthonormal rows.
Note that X == P %*% Z
, up to numerical precision.
Author(s)
David Gerard.
Examples
X <- matrix(1:6, nrow = 2)
polar_x <- polar(X)
P <- polar_x$P
Z <- polar_x$Z
P
Z
trim(Z %*% t(Z))
trim(X - P %*% Z)
[Package tensr version 1.0.1 Index]