[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41838] crash with interp2
From: |
Muhali |
Subject: |
[Octave-bug-tracker] [bug #41838] crash with interp2 |
Date: |
Mon, 31 Mar 2014 06:48:06 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 |
Follow-up Comment #6, bug #41838 (project octave):
There is no 2d pchip method in Matlab.
The error does not occur for interp1 because there are at least two
checks/repairs for decreasing data:
## interp1 line 184
## check whether x is sorted; sort if not.
if (! issorted (x, "either"))
[x, p] = sort (x);
y = y(p,:);
endif
## pchip line 93
h = diff (x);
if (all (h < 0))
x = fliplr (x);
h = diff (x);
y = fliplr (y);
elseif (any (h <= 0))
error ("pchip: X must be strictly monotonic");
endif
Without that, the slatec call to __pchip_deriv__ returns the error seen in the
segfault message.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41838>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41838] crash with interp2, Muhali, 2014/03/11
- [Octave-bug-tracker] [bug #41838] crash with interp2, Philip Nienhuis, 2014/03/11
- [Octave-bug-tracker] [bug #41838] crash with interp2, Stefan Mahr, 2014/03/11
- [Octave-bug-tracker] [bug #41838] crash with interp2, Ma Jun, 2014/03/16
- [Octave-bug-tracker] [bug #41838] crash with interp2, Mike Miller, 2014/03/26
- [Octave-bug-tracker] [bug #41838] crash with interp2, Rik, 2014/03/29
- [Octave-bug-tracker] [bug #41838] crash with interp2, Stefan Mahr, 2014/03/29
- [Octave-bug-tracker] [bug #41838] crash with interp2,
Muhali <=
- [Octave-bug-tracker] [bug #41838] interp2 needs input validation for strictly monotonic property, Rik, 2014/03/31
- [Octave-bug-tracker] [bug #41838] interp2 needs input validation for strictly monotonic property, Muhali, 2014/03/31
- [Octave-bug-tracker] [bug #41838] interp2 needs input validation for strictly monotonic property, Rik, 2014/03/31
- [Octave-bug-tracker] [bug #41838] interp2 needs input validation for strictly monotonic property, Muhali, 2014/03/31