On Fri, Apr 22, 2011 at 7:15 AM, Christian Stump
<christian.st...@gmail.com> wrote:
> The problem is that, even though every element in the UCF has a fixed
> degree, the elements in the matrix might all have different degrees;
> moreover I cannot predict the degree, especially not when adding or
> multiplying such matrices.
>
> Is there a fast way to store the data as a 2-dim array with entries
> being dictionaries with keys being basis elements in the Zumbroich
> basis, and with rational values? Any other suggestions?

To start with, you could just use the generic dense matrix
implementation as opposed to the optimized implementation for
cyclotomic field which should just involve changing the following
lines in sage/matrix/matrix_space.py:

            elif sage.rings.number_field.number_field.is_CyclotomicField(R):
                import matrix_cyclo_dense
                return matrix_cyclo_dense.Matrix_cyclo_dense

--Mike

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to