R/matpow.R

###  M^k  for a matrix  M and non-negative integer 'k'

"%^%" <- function(x, k)
    .Call(R_matpow, x, as.integer(k))

Try the expm package in your browser

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

expm documentation built on Jan. 12, 2024, 3:13 a.m.