Learn R Programming

sSDR (version 1.2.0)

matpower: Power of a matrix

Description

Power of a matrix

Usage

matpower(X, alpha)

Arguments

X
A p x p square matrix.
alpha
A scaler determining the order of the power.

Value

A p x p square matrix.

Details

This function calculates the power of a square matrix.

Examples

Run this code
data <- gen.data(n=100)
cov.squared <- matpower(cov.x(data$X), 2)

Run the code above in your browser using DataLab