R/expm.r

Defines functions rexpokit_expm

Documented in rexpokit_expm

rexpokit_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 April 2, 2026, 1:06 a.m.