#20968: more Hadamard matrices with constant diagonal
-------------------------------------+-------------------------------------
       Reporter:  dimpase            |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-7.3
      Component:  graph theory       |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Dima Pasechnik     |    Reviewers:  Vincent Delecroix
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/dimpase/hadaconst                |  ed7e1f08f203c608c55ddf6fdb84c4f49705bfaf
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by vdelecroix):

 For all the squaring buisness it is much faster to use the '''methods'''
 of Sage integers rather than the generic functions `is_square` and `sqrt`
 {{{
 sage: %timeit is_square(n)
 1000000 loops, best of 3: 698 ns per loop
 sage: %timeit n.is_square()
 1000000 loops, best of 3: 139 ns per loop
 sage: %timeit sqrt(n)
 1000000 loops, best of 3: 860 ns per loop
 sage: %timeit n.sqrtrem()
 1000000 loops, best of 3: 172 ns per loop
 }}}
 (though it does not import much since the time is not spent here anyway)

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

Reply via email to