- matrix::pow(): omit last big multiplication if it's not needed.