R/expm.r

Defines functions expm

Documented in expm

expm <- function(x, t=1)
{
  if (nrow(x) != ncol(x))
    stop("Matrix exponentiation is only defined for square matrices.")
  
  ret <- expokit_dgpadm_Qmat(Qmat=x, t=t, transpose_needed=TRUE)
  
  return( ret )
}

Try the rexpokit package in your browser

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

rexpokit documentation built on Aug. 16, 2017, 1:04 a.m.