#19296: Generating function in FindStat interface
-------------------------------------+-------------------------------------
       Reporter:  stumpc5            |        Owner:
           Type:  enhancement        |       Status:  needs_info
       Priority:  major              |    Milestone:  sage-6.9
      Component:  packages:          |   Resolution:
  optional                           |    Merged in:
       Keywords:  FindStat, OEIS     |    Reviewers:  Martin Rubey
        Authors:  Christian Stump    |  Work issues:  document
Report Upstream:  N/A                |       Commit:
         Branch:                     |  1fe70f7eaa757c9c2cf1bdde415bce9e22d3fb15
  u/mantepse/generating_function_in_findstat_interface|     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------
Changes (by stumpc5):

 * status:  positive_review => needs_info


Comment:

 Sorry to get back to this, but {{{if len(set(all_elements)) !=
 len(all_elements)}}} assumes the elements to be hashable.

 FindStat internally this is totally fine, but that makes the following,
 very natural, findstat search fail:
 {{{
 sage: findstat( { g:g.wiener_index() for g in Graphs(4) if
 g.is_connected() } )
 ---------------------------------------------------------------------------
 ...
 TypeError: This graph is mutable, and thus not hashable. Create an
 immutable copy by `g.copy(immutable=True)`
 }}}
 It will obviously take much longer to do the uniqueness test in a list,
 but I guess it's worth it. What do you think?

--
Ticket URL: <http://trac.sagemath.org/ticket/19296#comment:67>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to