matrix_power

Function matrix_power 

Source
pub fn matrix_power(a: &Tensor, n: i32) -> Result<Tensor, String>
Expand description

Matrix power: C = A^n (for positive integer n) This computes A * A * … * A (n times) via repeated multiplication