Nothing
tQRdwt <- function (tnsr)
{
if (tnsr@num_modes != 3)
stop("T-SVD only implemented for 3d so far")
modes <- tnsr@modes
n1 <- modes[1]
n2 <- modes[2]
n3 <- modes[3]
if (sum(as.numeric(intToBits(n3))) != 1)
stop("Mode 3 must be a power of 2 otherwise using 0 padding")
dwtz <- tDWT(tnsr)
Q_arr <- array(0, dim = c(n1, n2, n3))
R_arr <- array(0, dim = c(n1, n2, n3))
for (j in 1:n3) {
decomp <- qr(dwtz[, , j]@data, nu = n1, nv = n2)
Q_arr[, , j] <- qr.Q(decomp)
R_arr[, , j] <- qr.R(decomp)
}
# Inverse DWT
Q <- tIDWT(as.tensor(Q_arr))
R <- tIDWT(as.tensor(R_arr))
invisible(list(Q = Q, R = R))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.