mGSc | R Documentation |
This is an internal function which uses a C code to calculate an orthogonalization of a matrix. This function is used in the power method allowing to compute an eigendecomposition of a symmetric square.
mGSc(amat, m, n)
amat |
Matrix in vector form. |
m |
Number of rows of the matrix amat. |
n |
Number of columns of the matrix amat. |
This function returns a data frame containing 1 component
wp |
Eigenvectors matrix. |
d <- 3
r <- 2
amat <- c(rnorm(d*r,0,1))
res <- mGSc(amat, d, r)
wp <- matrix(res$wp, nrow=d, ncol=r)
t(wp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.