R/doSVD.R

"doSVD" <-
  function(x, numleft, numright) {
    # doSVD
    svdx <- La.svd(as.matrix(x), nu = numleft, nv = numright)
    list(
      values = svdx$d, left = as.matrix(svdx$u),
      right = as.matrix(svdx$vt)
    )
  }
glotaran/TIMP documentation built on Feb. 11, 2023, 4:11 a.m.