#19258: Speedup tensor products of cyclotomic matrices
-----------------------------+------------------------------------
   Reporter:  tscrim         |            Owner:  tscrim
       Type:  defect         |           Status:  new
   Priority:  major          |        Milestone:  sage-6.9
  Component:  number fields  |         Keywords:
  Merged in:                 |          Authors:  Travis Scrimshaw
  Reviewers:                 |  Report Upstream:  N/A
Work issues:                 |           Branch:
     Commit:                 |     Dependencies:
   Stopgaps:                 |
-----------------------------+------------------------------------
 Currently taking the tensor product of dense cyclotomic matrices takes
 forever:
 {{{
 sage: R = CyclotomicField(2)
 sage: M = matrix.random(R, 40,40)
 sage: N = matrix.random(R, 3, 3)
 sage: %time K = N.tensor_product(M)
 CPU times: user 337 ms, sys: 20.6 ms, total: 358 ms
 Wall time: 335 ms
 sage: %time K = M.tensor_product(N)
 CPU times: user 3.99 s, sys: 32.5 ms, total: 4.02 s
 Wall time: 3.97 s
 }}}
 The tensor product code looses a lot of time in converting between its
 internal representation and the cyclotomic field entries. This ticket
 implements a custom `tensor_product` along with doing some other speedups
 with the internal workings.

--
Ticket URL: <http://trac.sagemath.org/ticket/19258>
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