Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Higher-Order Generalized Singular Value Decomposition R package

barkasn/hogsvdR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Higher-Order Generalized Singular Value Decomposition for R

Installation Instructions

library('devtools')
install_github('barkasn/hogsvdR')

Example

N <- 3
nrow <- c(10,10,10)
ncol <- 10
s <- 1:N
D <- lapply(s, function(x) {matrix(rnorm(n=nrow[x]*ncol,mean = 0, sd =10),nrow[x],ncol)})
res <- hogsvd(D)

D.reconstruct <- lapply(1:N, function(n) { res$U[[n]] %*% diag(res$Sigma[[n]]) %*% t(res$V) })

About

Higher-Order Generalized Singular Value Decomposition R package

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published