Current implementation is a little hacky: repeat multiplying against itself n
times. For-loop over n, if array.
- Create a method that does not rely on repeated calling multiply, and instead
allocates a single chunk of memory and fill inn results there.
- Somehow avoid using element-by-element for-loop over exponents.
Current implementation is a little hacky: repeat multiplying against itself
ntimes. For-loop over
n, if array.allocates a single chunk of memory and fill inn results there.