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