mat_pow: Matrix power

View source: R/lin_alg.R

mat_powR Documentation

Matrix power

Description

Matrix power

Usage

mat_pow(x, pow = "1")

Arguments

x

A caracas_symbol, a matrix.

pow

Power to raise matrix x to

Examples

if (has_sympy() && sympy_version() >= "1.6") {
  M <- matrix_(c("1", "a", "a", 1), 2, 2)
  M
  mat_pow(M, 1/2)
}


caracas documentation built on Oct. 17, 2023, 5:08 p.m.