Orthonormalization of a matrix
Returns an orthonormal basis for the range of A
.
orth(A)
A
: Matrix to be orthogonalizedA
The columns of Q
span the same space as the columns of A
with t(Q)Q=I
.
The number of columns of Q
is the rank of A
.
Maria Antonietta Del Ferraro mariaantonietta.delferraro@yahoo.it
Henk A.L. Kiers h.a.l.kiers@rug.nl
Paolo Giordani paolo.giordani@uniroma1.it
X <- matrix(rnorm(6*3),ncol=3) Y <- orth(X)
Useful links