bug in __lin_interpn__.cc for decreasing coordinates

Alexander Barth barth.alexander at gmail.com
Mon Jan 21 05:40:31 CST 2008


Hi all again,
this code,

[x,y,z] = ndgrid(0:2);
f = x.^2+y.^2+z.^2;
fi = interpn(x,y,-z,f,1.5,1.5,-1.5)

returns NA (octave 3.0.0) while the correct answer is 7.5. The attached
patch, handles the case for decreasing coordinate values in
__lin_interpn__.cc

Proposed changelog:
__lin_interpn__.cc: handle decreasing coordinate values

Thanks,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080121/22d19169/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lin_interpn_decreasing_x.patch
Type: text/x-patch
Size: 1460 bytes
Desc: not available
Url : https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080121/22d19169/attachment.bin 


More information about the Bug-octave mailing list