[Scilab-users] interp and memory
Jean-Yves Baudais
Jean-Yves.Baudais at insa-rennes.fr
Mon Mar 8 09:56:40 CET 2021
Hi,
> But I guess splin() gets the derivatives [...]
Oh, maybe I was not clear. The memory issue is not here. There is not
problem to compute z. The loop is used to show the problem: it seems
that interp doesn't free the used memory after each call. So after
hundreds of call Scilab is killed!
for i=1:1000
mprintf("%d\n",i);
n=1e6;
xp=1:n;
x=1:100:n;
y=rand(x);
d=splin(x,y);
z=interp(xp,x,y,d);
end
--Jean-Yves
More information about the users
mailing list