Ticket #3063 (closed defect: fixed)
[with patch; positive review] empty matrices: norm() returns a ValueError
| Reported by: | dfdeshom | Owned by: | was |
|---|---|---|---|
| Priority: | major | Milestone: | sage-3.0.1 |
| Component: | linear algebra | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
sage: a = matrix([]) sage: a.norm() --------------------------------------------------------------------------- <type 'exceptions.ValueError'>: max() arg is an empty sequence
I think the answer in this case should be 0.
Attachments
Change History
comment:1 Changed 5 years ago by dfdeshom
- Summary changed from empty matrices: norm() returns a ValueError to [with patch; needs review] empty matrices: norm() returns a ValueError
Patch attached.
Note: See
TracTickets for help on using
tickets.

