#15300: Weyl and Clifford Algebras
-------------------------------------+-------------------------------------
       Reporter:  tscrim             |        Owner:  tscrim
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.2
      Component:  algebra            |   Resolution:
       Keywords:  days54             |    Merged in:
        Authors:  Travis Scrimshaw   |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  public/algebras/weyl_clifford-15300|  18b9529914faafb25d26bba0435ef06a9914b619
   Dependencies:  #16037             |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by darij):

 Is this a reasonable speed test?
 {{{
 sage: R = PolynomialRing(QQ, 'x')
 sage: Q = QuadraticForm(R, 3, [1,2,3,4,5,6])
 sage: Cl.<x,y,z> = CliffordAlgebra(Q)
 sage: d = {(0,1): R.gens()[0], (1,2): R.zero(), (0,2): R.one()}
 sage: %timeit Cl._from_dict(d, remove_zeros=True)
 100000 loops, best of 3: 5.32 µs per loop
 sage: l = (((0,1), R.gens()[0]), ((1,2), R.zero()), ((0,2), R.one()))
 sage: %timeit Cl._from_dict({m: k for (m, k) in l if k != 0})
 10000 loops, best of 3: 23.8 µs per loop
 sage: %timeit Cl.sum_of_terms(l, distinct=True)
 100000 loops, best of 3: 7.36 µs per loop
 }}}
 (I've misnamed the variables but this shouldn't matter...)

 Where should the unshuffle go?

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