theta2W {steadyICA} | R Documentation |
Convert d*(d-1)/2 angles from a sequence of Givens rotations to a d x d orthogonal matrix.
theta2W(theta)
theta |
A scalar or vector of length d*(d-1)/2 of values from which the d x d orthogonal matrix is calculated. |
A d x d orthogonal matrix resulting from the sequence of d*(d-1)/2 Givens rotation matrices.
David S. Matteson
Golub, G. & Van Loan, C. 1996. Matrix computations. Johns Hopkins University Press.
#Generate orthogonal matrix:
mat <- matrix(rnorm(9),3,3)
W = svd(mat)$u
theta <- W2theta(W)
#Recovers W:
theta2W(theta)