matrix_power: Matrix Exponent

View source: R/utilities.r

matrix_powerR Documentation

Matrix Exponent

Description

This function raises a matrix to an exponent using the matrix's eigendecomposition.

Usage

matrix_power(x, p, symmetric = TRUE, tol = -12)

Arguments

x

A square matrix

p

Linear hypothesis vector

symmetric

Indicates whether x is a symmetric matrix (if true, improves performance slightly)

tol

Error tolerance for eigenvalues close to zero assumed to be zero

Value

A vector of eigenvalues


akiva-yonah-meiselman/clubsoda documentation built on Feb. 3, 2025, 1:34 p.m.