[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55779] ordeig fails on 1x1 matrices

From: Sébastien Villemot
Subject: [Octave-bug-tracker] [bug #55779] ordeig fails on 1x1 matrices
Date: Mon, 25 Feb 2019 11:28:11 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0


                 Summary: ordeig fails on 1x1 matrices
                 Project: GNU Octave
            Submitted by: svillemot
            Submitted on: lun. 25 févr. 2019 16:28:09 UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux



There is a bug in the code for ordeig that I contributed. The trivial 1x1
matrices are not handled and lead to a crash:

octave:1> ordeig(1)
error: tril: requested diagonal out of range
error: called from
    ordeig>isquasitri at line 105 column 10
    ordeig at line 50 column 7

while it should simply return 1.

The attached patch fixes the issue and adds a regression test case.


File Attachments:

Date: lun. 25 févr. 2019 16:28:09 UTC  Name: ordeig-1x1.patch  Size: 1kio  
By: svillemot



Reply to this item at:


  Message posté via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]