id summary reporter owner description type status priority milestone component resolution keywords cc merged author reviewer upstream work_issues branch commit dependencies stopgaps
17443 abs(matrix) should not be a shortcut for det vdelecroix "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]" defect closed major sage-6.5 linear algebra fixed Vincent Delecroix Nathann Cohen N/A e6a4de841482f86499d6ae16769e6a220624b3a6 e6a4de841482f86499d6ae16769e6a220624b3a6