R/k.blocks.info.R

Defines functions k.blocks.info

Documented in k.blocks.info

k.blocks.info <- function( blocks ) {

      n <- dim(blocks[[1]])[1]
      size <- length(blocks) * n
      info <- matrix(0, size, size)

      ind <- 1
      for (block in blocks) {
           endind <- ind + n - 1
           info[ind:endind,ind:endind] <- block
           ind <- endind + 1
      }

      return(info)
}

Try the asypow package in your browser

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

asypow documentation built on May 2, 2019, 2:37 a.m.