Ticket #3495 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

[with patch, positive review] bug in cyclotomic charpoly for 1x1 matrices

Reported by: craigcitro Owned by: craigcitro
Priority: major Milestone: sage-3.0.4
Component: linear algebra Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description

The following will crash in sage:

sage: Matrix(CyclotomicField(3), 1, [0]).charpoly()

The attached patch fixes it.

Attachments

trac-3495.patch Download (1.7 KB) - added by craigcitro 5 years ago.

Change History

Changed 5 years ago by craigcitro

comment:1 Changed 5 years ago by was

  • Summary changed from [with patch, needs review] bug in cyclotomic charpoly for 1x1 matrices to [with patch, positive review] bug in cyclotomic charpoly for 1x1 matrices

REFEREE REPORT:

  • +1; this works as advertised

Reminder -- need to also fix 0x0 as another ticket...

comment:2 Changed 5 years ago by craigcitro

The 0x0 is #3496.

comment:3 Changed 5 years ago by mabshoff

  • Status changed from new to closed
  • Resolution set to fixed

Merged in Sage 3.0.4.alpha1

Note: See TracTickets for help on using tickets.