#5093: [with preliminary patch, request comments] rewrite fast_float to support
more datatypes
------------------------------+---------------------------------------------
Reporter: cwitty | Owner: cwitty
Type: defect | Status: new
Priority: major | Milestone: sage-feature
Component: basic arithmetic | Keywords:
------------------------------+---------------------------------------------
I've mentioned several times over the past months that I'm rewriting
fast_float. Here's a preliminary patch, that shows the direction I'm
taking (automatically generate interpreters for each type, by having
Python code write C code).
This version replaces fast_float with the new code, and also adds a new
entry point, fast_callable.
fast_callable(EXPR, domain=R)
(where EXPR is a symbolic expression or a polynomial) is essentially
equivalent to evaluating EXPR with calls to R() at every node. There's
special fast support for domain=RDF or domain=RealField(n), and there's
slowish generic code that should work for arbitrary R.
The code is not ready for submission... there are very few doctests, and a
lot of the documentation is simply wrong. But if anybody has any
comments, I'd be happy to hear them.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5093>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---