Description Usage Arguments Examples
Calculate the nth power of a square matrix. When the given matrix is a Markov chain transition matrix, this is equivalent to the n-step transition matrix.
1 | matrix_power(mat, n)
|
mat |
a square matrix |
n |
the power |
1 2 3 | x <- matrix(c(1:9), ncol=3)
matrix_power(mat=x, n=1)
matrix_power(mat=x, n=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.