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
abs(matrix) should not be a shortcut for det #17443
Comments
Commit: |
New commits:
|
Branch: u/vdelecroix/17443 |
comment:2
Crazy I will run the tests and see if it breaks anything. Why do you make "abs" an alias for Nathann |
This comment has been minimized.
This comment has been minimized.
comment:3
No hurry. Discussion going on on sage-devel... |
comment:4
The discussions seem to indicate a preference for deprecating |
comment:5
Yesyes, this seems to be the wisest thing to do indeed. Nathann |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:8
This should be a deprecation, not an error. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
All right, it is now a deprecation... |
comment:11
Passes all tests, so positive review. Do you know of a tool to detect that you only "moved" the code of those two big functions ? I found no way to do this, so in order to check your patch I moved what you wrote in matrix2 back to matrix_dense, only to see as it was detected as "leaving those function as they were" when merged with your patch. Nathann |
Reviewer: Nathann Cohen |
Changed branch from u/vdelecroix/17443 to |
We have currently
Because
matrix.__abs__
is a shortcut for determinant!!In scipy,
__abs__
applies the absolute value to each coefficient. But it is not likely what we want to do in Sage. Instead we raise aTypeError
and inform the user aboutmatrix.norm(1)
andmatrix.apply_map(abs)
.Related discussion on sage-devel https://groups.google.com/forum/#!topic/sage-devel/pFI9y3YZIQQ
Component: linear algebra
Author: Vincent Delecroix
Branch/Commit:
e6a4de8
Reviewer: Nathann Cohen
Issue created by migration from https://trac.sagemath.org/ticket/17443
The text was updated successfully, but these errors were encountered: