[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61759] poly misses an error for multidimensio
From: |
Arun Giridhar |
Subject: |
[Octave-bug-tracker] [bug #61759] poly misses an error for multidimensional input. Patch attached |
Date: |
Mon, 3 Jan 2022 13:33:43 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0 |
URL:
<https://savannah.gnu.org/bugs/?61759>
Summary: poly misses an error for multidimensional input.
Patch attached
Project: GNU Octave
Submitted by: arungiridhar
Submitted on: Mon 03 Jan 2022 01:33:41 PM EST
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Missed Error or Warning
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Details:
The function scripts/polynomial/poly.m should accept only a 1-D vector or a
2-D square matrix. Passing it more than 2 dimensions should be an error in
poly itself but this example causes it to pass through to eig:
octave:4> poly (ones (2,2,2))
error: EIG requires square matrix
error: called from
poly at line 72 column 7
A possible patch of the input validation is attached. Passes BISTs. Please
review and if all is good I'll add a commit message.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 03 Jan 2022 01:33:41 PM EST Name: poly_patch_v1.patch Size: 1KiB
By: arungiridhar
<http://savannah.gnu.org/bugs/download.php?file_id=52603>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61759>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61759] poly misses an error for multidimensional input. Patch attached,
Arun Giridhar <=