Most programming languages have a built-in implementation of exponentiation for integers and reals only.



Task

Demonstrate how to implement matrix exponentiation as an operator.




julia> [1 1 ; 1 0]^10
2x2 Array{Int64,2}:
 89  55
 55  34