#10667: Morphisms and Objects of Categories
---------------------------+------------------------------------------------
   Reporter:  SimonKing    |          Owner:  nthiery                      
       Type:  enhancement  |         Status:  needs_review                 
   Priority:  major        |      Milestone:                               
  Component:  categories   |       Keywords:  objects morphisms containment
Work_issues:               |       Upstream:  N/A                          
   Reviewer:               |         Author:  Simon King                   
     Merged:               |   Dependencies:  #9138, #11115                
---------------------------+------------------------------------------------

Comment(by SimonKing):

 I forgot to mention that I also improved `is_Ring`.

 With sage-4.7.2.alpha1 plus #9138 and #11115:
 {{{
 sage: from sage.rings.ring import is_Ring
 sage: MS = MatrixSpace(QQ,2)
 sage: %timeit is_Ring(QQ)
 625 loops, best of 3: 5.1 µs per loop
 sage: %timeit is_Ring(MS)
 625 loops, best of 3: 17.3 µs per loop
 sage: C = Rings()
 sage: %timeit QQ in C
 625 loops, best of 3: 4.18 µs per loop
 sage: %timeit MS in C
 625 loops, best of 3: 4.31 µs per loop
 }}}

 With sage-4.7.2.alpha2 plus #9138 and #11115 and the patch from here:
 {{{
 sage: from sage.rings.ring import is_Ring
 sage: MS = MatrixSpace(QQ,2)
 sage: %timeit is_Ring(QQ)
 625 loops, best of 3: 259 ns per loop
 sage: %timeit is_Ring(MS)
 625 loops, best of 3: 17.5 µs per loop
 sage: C = Rings().objects()
 sage: %timeit QQ in C
 625 loops, best of 3: 1.49 µs per loop
 sage: %timeit MS in C
 625 loops, best of 3: 1.57 µs per loop
 }}}

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

Reply via email to