octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #41838] interp2 needs input validation for str


From: Rik
Subject: [Octave-bug-tracker] [bug #41838] interp2 needs input validation for strictly monotonic property
Date: Mon, 31 Mar 2014 13:56:51 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

Update of bug #41838 (project octave):

                 Summary:      crash with interp2 => interp2 needs input
validation for strictly monotonic property

    _______________________________________________________

Follow-up Comment #7:

Matlab uses 'cubic' for an interpolation method with C1 continuity rather than
'pchip'.

Could you try changing the method and repeating the examples below.


interp2(1:2, 2:-1:1, randn(2,2), (1:0.5:2)', 2:-0.5:1, 'cubic')

[X, Y] = meshgrid ([1 2], [2 1]);
interp2(X, Y, 2:-1:1, randn(2,2), (1:0.5:2)', 2:-0.5:1, 'cubic')


I think the solution is going to come back to doing better input validation as
is done in interp1.  I overhauled interp1, interp2, interp3 on the development
branch in this changeset
(http://hg.savannah.gnu.org/hgweb/octave/rev/0ede4dbb37f1).  Any improvements
should start after that changeset so that the patches apply cleanly.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41838>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]