R/f_mactivate.R

f_mactivate <-
function (U, W) 
{
    d <- ncol(U)
    m <- ncol(W)
    N <- nrow(U)
    Xout <- matrix(0, N, m)
    Cout <- .C("mactivate_a", as.integer(N), as.integer(d), as.integer(m), 
        as.double(as.vector(U)), as.double(as.vector(W)), Xout = as.double(as.vector(Xout)))
    Xout <- Cout[["Xout"]]
    dim(Xout) <- c(N, m)
    colnames(Xout) <- colnames(W)
    return(Xout)
}

Try the mactivate package in your browser

Any scripts or data that you put into this service are public.

mactivate documentation built on Aug. 2, 2021, 5:07 p.m.