Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #17443: abs(matrix) should not be a shortcut for det
We have currently {{{ sage: M = matrix([[-1]]) sage: abs(M) -1 }}} Because `matrix.__abs__` is a shortcut for determinant!!I n scipy, `__abs__` applies the absolute value to each coefficient. But it is not likely what we want to do in Sage. Instead we raise a `TypeError` and inform the user about `matrix.norm(1)` and `matrix.apply_map(abs)`. Related discussion on sage-devel [https://groups.google.com/forum/#!topic/sage-devel/pFI9y3YZIQQ] URL: http://trac.sagemath.org/17443 Reported by: vdelecroix Ticket author(s): Vincent Delecroix Reviewer(s): Nathann Cohen
- Loading branch information
Showing
2 changed files
with
175 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters