mat_power: Compute the j:th power of a square matrix A

View source: R/matcal.R

mat_powerR Documentation

Compute the j:th power of a square matrix A

Description

mat_power computes the j:th power of a square matrix A using exponentiation by squaring.

Usage

mat_power(A, j)

Arguments

A

A square numeric matrix.

j

A natural number representing the power to which the matrix will be raised.

Value

A matrix which is A raised to the power j.


saviviro/gmvarkit documentation built on Jan. 4, 2025, 12:52 p.m.