R/reconstHOSVD.R

Defines functions reconstHOSVD

Documented in reconstHOSVD

#' 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)
}
liberaldays/TensorSlam documentation built on May 21, 2019, 6:13 a.m.