pub fn matrix_power(a: &Tensor, n: i32) -> Result<Tensor, String>
Matrix power: C = A^n (for positive integer n) This computes A * A * … * A (n times) via repeated multiplication