R/klin.klist.R

Defines functions `klin.klist`

`klin.klist` <-
function(A) {
  len <- length(A)
  if (len==0)
    Matrix(1,1,1)
  else if (len==1)
    A[[1]]
  else {
    B <- A[[1]]
    for (i in 2:len)
      B <- B %x% A[[i]]
    B
  }
}

Try the klin package in your browser

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

klin documentation built on May 2, 2019, 1:05 p.m.