R/linalg.R
pow.Rd
Matrix Power
pow(x, n, ...) # S3 method for default pow(x, n, ...)
If yac_symbol treat as such, else call pow.default().
yac_symbol
pow.default()
nth power of the square matrix.
n
further arguments passed to pow.default()
(x <- matrix(c(1, 2, 2, 3), ncol = 2)) #> [,1] [,2] #> [1,] 1 2 #> [2,] 2 3 pow(x, 2) #> [,1] [,2] #> [1,] 1597 2584 #> [2,] 2584 4181 pow(ysym(x), 2) #> {{ 5, 8}, #> { 8, 13}}