dg.gmane at thesamovar.net
Sun Dec 1 16:59:26 EST 2013
Julian Taylor <jtaylor.debian <at> googlemail.com> writes:
> your sin and exp calls are loop invariants, they do not depend on the
> loop iterable.
> This allows to move the expensive functions out of the loop and only
> leave some simple arithmetic in the body.
Ahhhh! I feel extremely stupid for not realising this! Thanks Julian.
Any thoughts on why using -ffast-math it actually goes slower for just doing
More information about the NumPy-Discussion