R/eigenV.R

Defines functions eigenV

Documented in eigenV

#############################################################################
eigenV <- function(xmat, wp, itmax=200, err=1e-8) {
    for (t in 1:itmax) {
        wt <- xmat %*% wp
        wc <- mGS(wt)
        if (norm(wp-wc,"F") < err) {
           break
        } else { wp <- wc}
    }
    list(wc=wc, iter=t)
}
#############################################################################

Try the psvd package in your browser

Any scripts or data that you put into this service are public.

psvd documentation built on Oct. 25, 2024, 9:07 a.m.