R/mat_pow.R

Defines functions `%^%`

`%^%` <- function(m, pow){

  replicate(n = pow, m, simplify = FALSE) %>%
    purrr::reduce(`%*%`)
}
ryan-heslin/matador documentation built on Dec. 22, 2021, 8:17 p.m.