grapes-pow-grapes: Calculate the power of a square matrix

%^%R Documentation

Calculate the power of a square matrix

Description

returns a matrix composed of eigenvector x diag(eigenvalue ^ power) x eigenvector'

Usage

S %^% power

Arguments

S

a square matrix

power

the times of power

Value

a matrix after power calculation that eigenvector x diag(eigenvalue ^ power) x eigenvector'

Examples

a <- matrix(1:9,3,3)
a %^% 2


thebrisklab/singR documentation built on Feb. 10, 2024, 12:12 a.m.