#19841: Fast polynomial evaluation for fmpz_poly/ZZX with arb input
-------------------------------------+------------------------
       Reporter:  vdelecroix         |        Owner:
           Type:  enhancement        |       Status:  new
       Priority:  major              |    Milestone:  sage-7.0
      Component:  PLEASE CHANGE      |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Vincent Delecroix  |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
   Dependencies:  #19822             |     Stopgaps:
-------------------------------------+------------------------

Comment (by vdelecroix):

 I do not completely understand the end your comment. The code I have
 written was precisely to avoid any conversion. You can have a look at
 #19822: there is no type conversion at all (except some `NTL -> FLINT`
 integer conversions).

 I agree that we have two places for the implementation of
 `IntegerPolynomial.__call__(ArbType)`:

 1. in integer polynomials  `__call__` (as in #19822)

 2. in arb `_evaluate_polynomial`

 I have no strong opinion about what is best. Though I provided a shurtcut
 `p._eval_mpfr_(x)` which is useful and avoid type checking. This is does
 not discard using 1. or 2. for the generic call to `__call__`.

--
Ticket URL: <http://trac.sagemath.org/ticket/19841#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to