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

Comment(by SimonKing):

 I have updated the patch, so that it should apply against
 sage-4.7.2.alpha2. I did not run tests, yet. Here are some timings:
 {{{
 sage: from sage.rings.commutative_ring import is_CommutativeRing
 sage: %timeit is_CommutativeRing(QQ)
 625 loops, best of 3: 1.09 µs per loop
 sage: C = CommutativeRings().objects()
 sage: %timeit QQ in C
 625 loops, best of 3: 3.82 µs per loop
 }}}

 `is_CommutativeRing` simply tests whether `QQ` is an instance of
 `sage.rings.ring.CommutativeRing`, which is of course very fast (but not
 very reliable from a mathematical point of view.

 Anyway, I try to squeeze `QQ in C` a bit more.

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