forum.alglib.net

ALGLIB forum
It is currently Sun Dec 22, 2024 3:50 am

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Spline2DBuildBicubic из alglib-2.6.0.delphi
PostPosted: Mon Apr 09, 2018 7:16 am 
Offline

Joined: Mon Apr 09, 2018 7:10 am
Posts: 2
Добрый день!
Использую Spline2DBuildBicubic из alglib-2.6.0.delphi.
При m<>n программа не работает, ошибка "Invalid pointer operation".
При m=n полученный результат значимо отличается от реального.
Подскажите, что не так.
Мой кусочек проги:
m:=6;
n:=8;
SetLength(X, m);
SetLength(Y, n);
SetLength(F, m, n);
for i:=0 to m-1 do x[i]:= i;
for j:=0 to n-1 do y[j]:= j*2;
for i:=0 to m-1 do
for j:=0 to n-1 do f[i,j]:= x[i]+y[j];
Spline2DBuildBicubic(X,Y,F,m,n,c);
//Spline2DBuildBilinear(X,Y,F,m,n,c);
xt:=2.4;
yt:=4.1;
ft:=Spline2DCalc(C,xt,yt);
showmessage(FloatToStr(ft));


Top
 Profile  
 
 Post subject: Re: Spline2DBuildBicubic из alglib-2.6.0.delphi
PostPosted: Wed Apr 11, 2018 9:54 am 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 927
Hi!

Maybe you misplaced M and N? Not 100% sure, but possible. Anyway, 2.6.0 is obsolete - maybe you should try 3.x branch for Delphi?

P.S. It is English forum :)


Top
 Profile  
 
 Post subject: Re: Spline2DBuildBicubic из alglib-2.6.0.delphi
PostPosted: Thu Apr 12, 2018 2:05 am 
Offline

Joined: Mon Apr 09, 2018 7:10 am
Posts: 2
Sorry, I don't speak English very well

Maybe you misplaced M and N?
I it is first, what I try. Result - no.

Anyway, 2.6.0 is obsolete - maybe you should try 3.x branch for Delphi?
I don't see another version for Delphi in this site.

question: 2.6.0 is not correct?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group