Boosting Matrix Exponentiation
We're jumping several levels of abstraction: instead of thinking purely about mathematical algorithms, we're going to think about how computers work, and how we can speed up a very specific algorithm using some tricks. In applied math problems, getting the mathematical answer can be only half the battle—getting code to run efficiently on actual hardware is a different challenge. We're going to start with our matrix exponentiation algorithm and really make it sing.
Recall that matrix exponentiation means computing , where . Let's just show what the first few powers look like:
We can spot the general form by this point:1
- Proof left—how did you guess—as an exercise to the reader.↩
Boosting Matrix Exponentiation
We're jumping several levels of abstraction: instead of thinking purely about mathematical algorithms, we're going to think about how computers work, and how we can speed up a very specific algorithm using some tricks. In applied math problems, getting the mathematical answer can be only half the battle—getting code to run efficiently on actual hardware is a different challenge. We're going to start with our matrix exponentiation algorithm and really make it sing.
Recall that matrix exponentiation means computing , where . Let's just show what the first few powers look like:
We can spot the general form by this point:1
- Proof left—how did you guess—as an exercise to the reader.↩