Ticket #3066 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

[with patch; positive review] empty matrices: gram_schmidt() throws a NameError

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

Looks like an explicit import is the only thing missing on this one:

sage: a = matrix([])
sage: m.gram_schmidt()
<type 'exceptions.NameError'>: global name 'ZZ' is not defined

Attachments

3066.patch Download (1.1 KB) - added by dfdeshom 5 years ago.

Change History

Changed 5 years ago by dfdeshom

comment:1 Changed 5 years ago by dfdeshom

  • Summary changed from empty matrices: gram_schmidt() throws a NameError to [with patch; needs review] empty matrices: gram_schmidt() throws a NameError

Patch attached.

comment:2 Changed 5 years ago by mhansen

  • Summary changed from [with patch; needs review] empty matrices: gram_schmidt() throws a NameError to [with patch; positive review] empty matrices: gram_schmidt() throws a NameError

comment:3 Changed 5 years ago by mabshoff

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

Merged in Sage 3.0.1.alpha1

Note: See TracTickets for help on using tickets.