Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in the way vectors are created for submodules of free modules #11034

Closed
williamstein opened this issue Mar 25, 2011 · 16 comments
Closed

bug in the way vectors are created for submodules of free modules #11034

williamstein opened this issue Mar 25, 2011 · 16 comments

Comments

@williamstein
Copy link
Contributor

Let R be a ring with fraction field K.

When you create a R-submodule of K^n (with K!=QQ) the vectors 
are created in the ring R not the fraction field.  This breaks things 
when the submodule is not in R^n.

Fixed by #11751.

CC: @mminzlaff

Component: linear algebra

Reviewer: William Stein, Moritz Minzlaff

Issue created by migration from https://trac.sagemath.org/ticket/11034

@williamstein

This comment has been minimized.

@williamstein

This comment has been minimized.

@mminzlaff
Copy link
Mannequin

mminzlaff mannequin commented Mar 30, 2011

comment:3

The new version adds a doctest (and is slightly modified to make the doctest work).

The only doctest failure I received was related to the startup time as checked by startup.py. Curiously enough, replicating the same test on my local machine returned True. (Replicating as in: not running the doctest itself as it always returns True when not on sage.math.)

@mminzlaff mminzlaff mannequin added t: bug labels Mar 30, 2011
@mminzlaff
Copy link
Mannequin

mminzlaff mannequin commented Mar 31, 2011

comment:4

Apply trac_11034.v2.patch

@mminzlaff

This comment has been minimized.

@mminzlaff
Copy link
Mannequin

mminzlaff mannequin commented Apr 1, 2011

Author: William Stein, Moritz Minzlaff

@koffie
Copy link

koffie commented Sep 10, 2011

comment:6

This patch fails to apply to 4.7.2.alpha2

md:sage maarten$ mhg qim -P https://github.com/sagemath/sage/files/ticket11034/trac_11034.v2.patch.gz
adding trac_11034.v2.patch to series file
applying trac_11034.v2.patch
patching file sage/modules/free_module.py
Hunk #1 FAILED at 4902
1 out of 1 hunks FAILED -- saving rejects to file sage/modules/free_module.py.rej
patching file sage/modules/free_module_element.pyx
Hunk #3 succeeded at 3356 with fuzz 1 (offset 701 lines).
patch failed, unable to continue (try -v)
patch failed, rejects left in working dir
errors during apply, please fix and refresh trac_11034.v2.patch

But there was some stupid duplicate of work so there is another ticket wich fixes the same problem at #11751
so if that one gets positive review and merged we can close this one.

@koffie
Copy link

koffie commented Sep 10, 2011

Work Issues: rebase

@mminzlaff
Copy link
Mannequin

mminzlaff mannequin commented May 28, 2012

comment:7

Since #11751 received a positive review and was merged in 4.7.2, maybe this ticket can be closed? (I also checked the test in the docstring of this patch and it passes in Sage 5.0.)

@williamstein
Copy link
Contributor Author

comment:8

I can confirm that your examples work fine in sage-5.0. So this can be closed. The proper way to do that is "positive review".

@williamstein

This comment has been minimized.

@williamstein williamstein removed this from the sage-5.1 milestone May 28, 2012
@williamstein
Copy link
Contributor Author

Reviewer: William Stein

@jdemeyer
Copy link

jdemeyer commented Jun 2, 2012

Changed work issues from rebase to none

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link

jdemeyer commented Jun 2, 2012

Changed author from William Stein, Moritz Minzlaff to none

@jdemeyer
Copy link

jdemeyer commented Jun 2, 2012

Changed reviewer from William Stein to William Stein, Moritz Minzlaff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants