#13502: vector norm doesn't work with python integers
----------------------------------+-----------------------------------------
       Reporter:  jason           |         Owner:  jason, was
           Type:  defect          |        Status:  new       
       Priority:  major           |     Milestone:  sage-5.4  
      Component:  linear algebra  |    Resolution:            
       Keywords:                  |   Work issues:            
Report Upstream:  N/A             |     Reviewers:            
        Authors:  Jason Grout     |     Merged in:            
   Dependencies:                  |      Stopgaps:            
----------------------------------+-----------------------------------------

Comment (by jason):

 By the way, this also seems to speed up the norm calculation too:

 Before:
 {{{
 sage: sage: v=vector((1.71964708011116, 1.94742583018281))
 sage: sage: timeit('v.norm(2)')
 625 loops, best of 3: 66.9 µs per loop
 sage: sage: timeit('v.norm(int(2))')
 625 loops, best of 3: 39.6 µs per loop
 }}}

 After
 {{{
 sage: v=vector((1.71964708011116, 1.94742583018281))
 sage: timeit('v.norm(2)')
 625 loops, best of 3: 64.6 µs per loop
 sage: timeit('v.norm(int(2))')
 625 loops, best of 3: 31.7 µs per loop
 }}}

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