#19016: A more naive sage.structure.element.__hash__
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  ncohen                 |       Status:  needs_work
           Type:         |    Milestone:  sage-duplicate/invalid/wontfix
  defect                 |   Resolution:
       Priority:         |    Merged in:
  blocker                |    Reviewers:
      Component:  misc   |  Work issues:
       Keywords:         |       Commit:
        Authors:         |  754dc5794a1a7004c8844cf7cfb64220957c36a5
  Nathann Cohen          |     Stopgaps:
Report Upstream:  N/A    |
         Branch:         |
  u/ncohen/19016         |
   Dependencies:         |
-------------------------+-------------------------------------------------

Comment (by vbraun):

 Often you can have normal forms on general grounds, so IMHO would be
 reasonable to just make `CanonicalRepresentation` a part of vector spaces
 and such. Thats why I said we shouldn't have to do it for every parent by
 hand. For most parents the `hash(repr(element))` is a good enough hash
 function. Sure you could make it faster by an overall constant factor, but
 its still gives you O(1) associative containers.

--
Ticket URL: <http://trac.sagemath.org/ticket/19016#comment:18>
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