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 Nov. 22, 2023, 5:07 p.m.