#' reconstruct HOSVD result
#'@export
#'@param hosvd_res WIP
#'@return WIP
reconstHOSVD <- function(hosvd_res){
g <- hosvd_res$g
for(n in 1:length(dim(g))){
g <- kModeProduct(tnsr = g,mat=hosvd_res$As[[n]],m=n)
}
return(g)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.