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

extend solve_right to all cases; implement solve_left #2581

Closed
williamstein opened this issue Mar 18, 2008 · 12 comments
Closed

extend solve_right to all cases; implement solve_left #2581

williamstein opened this issue Mar 18, 2008 · 12 comments

Comments

@williamstein
Copy link
Contributor

A.solve_right only worked for A nonsingular, and there was no solve_left. Now A.solve_right should work for any A and there is a solve_left.

Component: linear algebra

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

@williamstein williamstein added this to the sage-2.11 milestone Mar 18, 2008
@williamstein williamstein self-assigned this Mar 18, 2008
@williamstein
Copy link
Contributor Author

Attachment: sage-2581.patch.gz

@williamstein
Copy link
Contributor Author

comment:2

WARNING: def restrict_codomain(self, V) is not done yet (it's just a copy of restrict_domain). I'll create a patch later tonight that correctly implements this.

@williamstein
Copy link
Contributor Author

this provides the extra restrict_codomain functionality.

@craigcitro
Copy link
Member

comment:3

Attachment: sage-2581_part2-restrict_codomain.patch.gz

Looks great. Merge this right away!

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Mar 18, 2008

comment:4

Merged both patches in Sage 2.11.alpha0

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Mar 18, 2008
@ncalexan
Copy link
Mannequin

ncalexan mannequin commented Mar 18, 2008

comment:5

An unexpected problem: solve_right is defined in matrix_integer_dense and the versions don't provide the same functionality. This could happen more places.

Is there any hope for a solution_space_right that handles under-determined systems?

@williamstein
Copy link
Contributor Author

comment:6

An unexpected problem: solve_right is defined in
matrix_integer_dense and the versions don't provide
the same functionality. This could happen more places.

Good point -- I had meant to address that but fell asleep and forgot.
A patch will be forthcoming.

Is there any hope for a solution_space_right that handles under-determined systems?

Not in this patch. Make a trac ticket and somebody will get to it.

@williamstein williamstein reopened this Mar 18, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Mar 19, 2008

comment:7

For the record: This ticket was reopened after sage-2581.patch and sage-2581_part2-restrict_codomain.patch had been merged. So any additional patch should make clear how it should be applied.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title extend solve_right to all cases; implement solve_left [reopened] extend solve_right to all cases; implement solve_left Mar 19, 2008
@williamstein
Copy link
Contributor Author

comment:8

I'm attaching a patch that:

  1. addresses Nick's concern about derived classes overloading solve_right.

  2. I found that Clement recently introduced a solve right for sparse modn matrices for some reason, and that it had several bugs. I've fixed those as well in this patch.

@williamstein
Copy link
Contributor Author

Attachment: sage-2581_part3.patch.gz

@ncalexan
Copy link
Mannequin

ncalexan mannequin commented Mar 19, 2008

comment:10

I think this looks good and should be applied. I think that means part3 should be applied since the other two already have been.

@ncalexan ncalexan mannequin changed the title [reopened] extend solve_right to all cases; implement solve_left extend solve_right to all cases; implement solve_left Mar 19, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Mar 19, 2008

comment:11

Merged sage-2581_part3.patch in Sage 2.11.alpha0.

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

2 participants