|
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 |
URL: <https://savannah.gnu.org/bugs/?55779> 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 _______________________________________________________ Details: 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 <http://savannah.gnu.org/bugs/download.php?file_id=46355> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?55779> _______________________________________________ Message posté via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |