diff --git a/build/pkgs/configure/checksums.ini b/build/pkgs/configure/checksums.ini index 753442bc6aa..efbf3445eff 100644 --- a/build/pkgs/configure/checksums.ini +++ b/build/pkgs/configure/checksums.ini @@ -1,4 +1,4 @@ tarball=configure-VERSION.tar.gz -sha1=0c93ffbc40ee55c429b82c6070817c0133a05013 -md5=96e8d0c3aa48cab18b60499c4d303a73 -cksum=2523075193 +sha1=916d899be471df2370fc359c35a08ee524ad5676 +md5=7088925f8d8c9d4954c44c72b0201031 +cksum=877876854 diff --git a/build/pkgs/configure/package-version.txt b/build/pkgs/configure/package-version.txt index 67d54a29923..66ed3cc3a32 100644 --- a/build/pkgs/configure/package-version.txt +++ b/build/pkgs/configure/package-version.txt @@ -1 +1 @@ -81a374dc4dacba71cf071f981d496ff63b2b2acb +d54fa043a6118f6220b0a7071ee465c14599b3d0 diff --git a/src/sage/matrix/matrix_mod2_dense.pyx b/src/sage/matrix/matrix_mod2_dense.pyx index f56d05101b9..64db5480987 100644 --- a/src/sage/matrix/matrix_mod2_dense.pyx +++ b/src/sage/matrix/matrix_mod2_dense.pyx @@ -595,14 +595,27 @@ cdef class Matrix_mod2_dense(matrix_dense.Matrix_dense): # dense or sparse sage: v = vector(GF(2), 0) sage: m * v (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) + + Add a test involving a nonsquare matrix:: + + sage: A = random_matrix(GF(2),10^4,10^3) + sage: v0 = random_matrix(GF(2),10^3,1) + sage: v1 = v0.column(0) + sage: r0 = A*v0 + sage: r1 = A*v1 + sage: r0.column(0) == r1 + True """ cdef mzd_t *tmp - global VectorSpace - if VectorSpace is None: - from sage.modules.free_module import VectorSpace - VS = VectorSpace(self._base_ring, self._nrows) - if not isinstance(v, Vector_mod2_dense): - v = VS(v) + if self._nrows == self._ncols and isinstance(v, Vector_mod2_dense): + VS = v.parent() + else: + global VectorSpace + if VectorSpace is None: + from sage.modules.free_module import VectorSpace + VS = VectorSpace(self._base_ring, self._nrows) + if not isinstance(v, Vector_mod2_dense): + v = VS(v) if self.ncols() != v.degree(): raise ArithmeticError("number of columns of matrix must equal degree of vector")