mat_pow: Calculate power of a matrix

Description Usage Arguments Details Value

View source: R/mat_pow.R

Description

Calculate matrix to an integer power.

Usage

1
mat_pow(xx, pow)

Arguments

xx

a square matrix.

pow

positive integer power to raise the matrix to.

Details

This is a simple, recursive function to use integer powers when calculating p-step random walk kernels.

Value

a matrix.


jdreyf/PANTS documentation built on July 18, 2019, 10:12 a.m.