Jason Grout wrote:
> I'm trying to add _fast_float_ functionality to SymbolicEquation 
> objects.  However, a perusal of the sage.ext.fast_eval.pyx file seems to 
> indicate that the operations <, <=, ==, >=, >, and != are not supported 
> by the fast_float machinery.  Is that correct?  If so, how do I add 
> these operations?  If not, then how do I construct a FastDoubleFunc 
> object appropriately?
> 
> Or, should I just use the python operators and call fast_float on each side?
>

On the other hand (after implementing this and seeing it work 
beautifully :), I see that it messes with equality testing of functions 
(for example, see the doctests in sage/ext/fast_eval.pyx where we have 
functions compared to each other).

To get around this, I instead use the _richcmp_ function.  For examples, 
see the doctests at the patch on trac #2768.

There are lots of timings on the trac ticket.  Basically, it's something 
like 100x speedup, which I guess is par for the course when dealing with 
fast_float stuff :).

Thanks,

Jason


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to