[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62330] [octave forge] (mapping) degrees2dm fa
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #62330] [octave forge] (mapping) degrees2dm fails on NaN input |
Date: |
Mon, 18 Apr 2022 07:53:20 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?62330>
Summary: [octave forge] (mapping) degrees2dm fails on NaN
input
Project: GNU Octave
Submitted by: carandraug
Submitted on: Mon 18 Apr 2022 11:53:18 AM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error or Warning
Status: Patch Submitted
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: other
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Details:
I have received the following email from Brendon Higgins (added to CC) with a
bug report to degrees2dm and patch (attached):
> I have found that the OctaveForge function degrees2dm(deg) fails when any
> value in the input vector deg is NaN:
> >> degrees2dm([NaN 3 6757 23421 NaN 1.2345])
> error: invalid conversion from NaN to logical
> error: called from
> degrees2dm at line 90 column 10
>
> In comparison, Matlab's implementation handles this input gracefully by
> returning [NaN, NaN] for each such value.
>
> For your consideration, I attach a modified version of dergees2dm.m,
wherein
> I've attempted to avoid the call to logical() for dm rows containing NaN.
It
> would be great if a future version contained such a fix.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 18 Apr 2022 11:53:18 AM UTC Name: degrees2dm.m Size: 4KiB By:
carandraug
fixed implementation submitted by Brendin Higgins by email
<http://savannah.gnu.org/bugs/download.php?file_id=53104>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62330>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62330] [octave forge] (mapping) degrees2dm fails on NaN input,
Carnë Draug <=