forum.alglib.net

ALGLIB forum
 It is currently Wed Aug 15, 2018 7:18 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.

 Page 1 of 1 [ 3 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Spline2DBuildBicubic из alglib-2.6.0.delphiPosted: Mon Apr 09, 2018 7:16 am

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

 Post subject: Re: Spline2DBuildBicubic из alglib-2.6.0.delphiPosted: Wed Apr 11, 2018 9:54 am

Joined: Fri May 07, 2010 7:06 am
Posts: 825
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

 Post subject: Re: Spline2DBuildBicubic из alglib-2.6.0.delphiPosted: Thu Apr 12, 2018 2:05 am

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

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 3 posts ]

 All times are UTC

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

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

Search for: