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

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

[Octave-bug-tracker] [bug #41838] crash with interp2


From: Rik
Subject: [Octave-bug-tracker] [bug #41838] crash with interp2
Date: Sat, 29 Mar 2014 19:14:44 +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):

                  Status:         Patch Submitted => In Progress            

    _______________________________________________________

Follow-up Comment #4:

I applied Stefan's patch to the stable branch here
(http://hg.savannah.gnu.org/hgweb/octave/rev/e7369c43ebe0).  This at least
stops the segmentation fault.

Back to the root problem, there should be input validation of X and Y. 
According to the documentation, when X and Y are grid vectors (rather than
matrices from meshgrid()), the *must* be strictly monotonic, but there is no
test for that.  We could add one though.

What does Matlab do for these two test cases?


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

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



    _______________________________________________________

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]