R/calcB.R

"calcB" <-
function (k) 
{
    lenk <- length(k) 
    m <- rep(0, lenk * lenk)
    m <- as.matrix(.C("r_calcB", m = as.double(m), as.double(k), 
                      as.integer(lenk), PACKAGE="TIMP")$m)
    dim(m) <- c(lenk, lenk)
    m 
  }

Try the TIMP package in your browser

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

TIMP documentation built on May 2, 2019, 5:55 p.m.