[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61907] interpn gives wrong results for comple
From: |
Christof Kaufmann |
Subject: |
[Octave-bug-tracker] [bug #61907] interpn gives wrong results for complex matrices |
Date: |
Mon, 24 Jan 2022 06:04:03 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?61907>
Summary: interpn gives wrong results for complex matrices
Project: GNU Octave
Submitted by: christofkaufmann
Submitted on: Mon 24 Jan 2022 11:04:02 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Details:
Interpolating complex matrices gives a default extrapolation value of NA + 0i
instead of NA + NAi. Example:
interpn (i*eye(2), 1, 0:1, "nearest")
ans =
NA + 0i 0 + 1i
Additionally "linear" ignores the imaginary part:
interpn (i*eye(2), 1, 0:1, "linear")
ans =
NA 0
The appended patch fixes interpn for complex matrices.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 24 Jan 2022 11:04:02 AM UTC Name: interpn_fix_complex1.diff Size:
2KiB By: christofkaufmann
Fix interpn for complex matrices - v1
<http://savannah.gnu.org/bugs/download.php?file_id=52715>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61907>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61907] interpn gives wrong results for complex matrices,
Christof Kaufmann <=
- [Octave-bug-tracker] [bug #61907] interpn gives wrong results for complex matrices, Christof Kaufmann, 2022/01/24
- [Octave-bug-tracker] [bug #61907] interpn gives wrong results for complex matrices, Christof Kaufmann, 2022/01/26
- [Octave-bug-tracker] [bug #61907] interpn gives wrong results for complex matrices, Christof Kaufmann, 2022/01/27
- [Octave-bug-tracker] [bug #61907] interpn gives wrong results for complex matrices, Christof Kaufmann, 2022/01/27
- [Octave-bug-tracker] [bug #61907] interpn gives wrong results for complex matrices, Markus Mützel, 2022/01/28
- [Octave-bug-tracker] [bug #61907] interpn gives wrong results for complex matrices, Christof Kaufmann, 2022/01/29
- [Octave-bug-tracker] [bug #61907] interpn gives wrong results for complex matrices, Markus Mützel, 2022/01/30
- [Octave-bug-tracker] [bug #61907] interpn gives wrong results for complex matrices, Rik, 2022/01/30