-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
solve_right with matrix right hand side fails over RDF and CDF #17405
Comments
comment:1
I attached a patch to this ticket. Following the pattern set by the solve_right and solve_left in src/sage/matrix/matrix2.pyx, I tweaked the code in src/sage/matrix/matrix_double_dense.pyx to make solve_right and solve_left for RDF and CDF matrices accept matrices for b. If b is given as a matrix, the answer x will be returned as a matrix. Please note:
I didn't try to fix either of those issues. |
comment:2
Why the restriction that the right hand side only has one column? |
comment:3
Because it did not even occur to me that the right hand side could have more than one. Thanks for pointing that out. I let b, the right hand side, have more columns. I fixed a bug that is in apparently dead code and wouldn't matter even if it wasn't. I made a branch for this ticket because that seems to be the proper way to do things here. Also it seems like for non-square matrices the RDF/CDF right_solve and left_solve could just lean on the generic right_solve and left_solve? (The scipy solver needs square matrices, so right now the RDF/CDF code rejects them.) Anyway that would be for a different ticket if it even matters. EDIT: I think I may have made the branch wrong? Sorry :(. |
Commit: |
Reviewer: Vincent Delecroix |
comment:5
Hello,
This is bad since linear system might involve huge matrices.
Vincent |
comment:7
Having a look at this. |
Author: Peter Wicks Stringfield, Jeroen Demeyer |
Changed branch from u/peterwicksstringfield/17405_solve_right to u/jdemeyer/17405_solve_right |
comment:10
Replying to @videlec:
I have updated the branch to use the coercion framework to figure out a common parent for I also added a deprecation for the case in which the argument In the future, New commits:
|
Changed branch from u/jdemeyer/17405_solve_right to u/gh-mwageringel/17405 |
Changed author from Peter Wicks Stringfield, Jeroen Demeyer to Peter Wicks Stringfield, Jeroen Demeyer, Markus Wageringel |
Changed branch from u/gh-mwageringel/17405 to |
Solving
AX=B
for a matrixB
usingsolve_right
or\
works over many rings, but notRDF
orCDF
. Example:Component: linear algebra
Author: Peter Wicks Stringfield, Jeroen Demeyer, Markus Wageringel
Branch/Commit:
7b07a27
Reviewer: Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/17405
The text was updated successfully, but these errors were encountered: