Exponentiation by integral exponents
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Tue Apr 27 22:14:00 GMT 2004
FYI I have ported Andy's code for exponentiation by an integral exponent
to our tree. This is an implementation of Knuth's algorithm which uses
the minimum number of multiplications for exponents < 100. As an
additional bonus there's no more need to special case an exponent of
three, the optimal code is generated automatically. I'll submit this
once my copyright assignment is handled.
Does anybody have any insight on how to write testcases for this?
- Tobi
More information about the Fortran
mailing list