# HG changeset patch # User Tom Coates # Date 1311105549 -3600 # Node ID 644022108de5f1a0799d3299b2c9ac6a90f202ce # Parent ce324e28c3334398d3552640e2cb1520d22465a3 workaround for trac 11358 diff -r ce324e28c333 -r 644022108de5 sage/matrix/matrix_integer_dense.pyx --- a/sage/matrix/matrix_integer_dense.pyx Mon May 23 13:36:51 2011 +0000 +++ b/sage/matrix/matrix_integer_dense.pyx Tue Jul 19 20:59:09 2011 +0100 @@ -776,16 +776,24 @@ cdef sage.structure.element.Matrix _matrix_times_matrix_(self, sage.structure.element.Matrix right): - ############# - # see the tune_multiplication function below. - n = max(self._nrows, self._ncols, right._nrows, right._ncols) - if n <= 20: - return self._multiply_classical(right) - a = self.height(); b = right.height() - if float(max(a,b)) / float(n) >= 0.70: - return self._multiply_classical(right) - else: - return self._multiply_multi_modular(right) + ############################################################ + ## + ## this is an ugly kludge to work around trac 11358 + ## I just turned off multi-modular multiplication under + ## all circumstances + ## + ############################################################ + return self._multiply_classical(right) + # ############# + # # see the tune_multiplication function below. + # n = max(self._nrows, self._ncols, right._nrows, right._ncols) + # if n <= 20: + # return self._multiply_classical(right) + # a = self.height(); b = right.height() + # if float(max(a,b)) / float(n) >= 0.70: + # return self._multiply_classical(right) + # else: + # return self._multiply_multi_modular(right) cpdef ModuleElement _lmul_(self, RingElement right): """