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

lifting a subdivided matrix should preserve the subdivision, but doesn't. #5716

Closed
williamstein opened this issue Apr 8, 2009 · 12 comments
Closed

Comments

@williamstein
Copy link
Contributor

sage: a = random_matrix(GF(3),4)
sage: a.subdivide(2,2)
sage: a
[2 0|0 2]
[2 1|1 0]
[---+---]
[1 2|1 0]
[1 0|0 1]
sage: a.lift()
[2 0 0 2]
[2 1 1 0]
[1 2 1 0]
[1 0 0 1]

See also #5717.

CC: @jasongrout

Component: linear algebra

Author: John Palmieri

Reviewer: Jason Grout

Merged: 4.0.1.alpha0

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

@williamstein williamstein added this to the sage-3.4.1 milestone Apr 8, 2009
@williamstein williamstein self-assigned this Apr 8, 2009
@williamstein

This comment has been minimized.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Apr 9, 2009

comment:2

Is this a high priority issue? I am not convinced and since there is no patch and no sign of anyone working on fixing this I am bumping this to 3.4.2. There are also various dupes, one of which go reopened, i.e. #5715, so let's figure this out.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title lifting a subdivided matrix should preserve the subdivision, but doesn't. [duplicate] lifting a subdivided matrix should preserve the subdivision, but doesn't. Apr 9, 2009
@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-3.4.1, sage-3.4.2 Apr 9, 2009
@jhpalmieri
Copy link
Member

comment:3

(I don't think this is actually a duplicate.)

@jhpalmieri jhpalmieri changed the title [duplicate] lifting a subdivided matrix should preserve the subdivision, but doesn't. lifting a subdivided matrix should preserve the subdivision, but doesn't. May 6, 2009
@jhpalmieri
Copy link
Member

comment:4

Here's a patch. This should change things so that subdivisions are preserved when calling mat.change_ring(), mat.lift(), mat.dense_matrix(), and mat.sparse_matrix().

@loefflerd
Copy link
Mannequin

loefflerd mannequin commented May 29, 2009

comment:5

This applies fine to 4.0.rc1 and all doctests in sage/matrix pass (except the known numerical-noise failure which is nothing to do with this patch). But I'm not completely happy with it, because not all of the functions where the behaviour has changed have doctests to prove it, so I'm changing this to "needs work".

David

@loefflerd loefflerd mannequin added the s: needs work label May 29, 2009
@jhpalmieri
Copy link
Member

comment:6

Okay, here's a new patch. I think that this tests everything, although there is at least one function (sparse_matrix, maybe) which is tested in a doctest for another (by looking at a.dense_matrix().sparse_matrix() or something like that).

@jasongrout
Copy link
Member

comment:7

Attachment: trac_5716.patch.gz

@jasongrout
Copy link
Member

comment:8

It passes doctests (and everything is tested). Looks good to me. Positive review.

@mwhansen
Copy link
Contributor

comment:9

Merged in 4.0.alpha0.

@mwhansen
Copy link
Contributor

mwhansen commented Jun 6, 2009

Merged: 4.0.1.alpha0

@mwhansen
Copy link
Contributor

mwhansen commented Jun 6, 2009

Reviewer: Jason Grout

@mwhansen
Copy link
Contributor

mwhansen commented Jun 6, 2009

Author: John Palmieri

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