forum.alglib.net

ALGLIB forum
It is currently Wed Oct 09, 2024 7:34 pm

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  [ 2 posts ] 
Author Message
 Post subject: Data conversion problem
PostPosted: Mon Jul 11, 2011 3:03 pm 
Offline

Joined: Mon Jul 11, 2011 2:47 pm
Posts: 2
Hello everybody,
I try to use ALGLIB for data fitting in spectroscopic analysis program written in C++ Builder 6. I want to use for this the Levenberg Marquardt algorithm. My problem is data conversion. All my data are in double type (measurement data, target function) but ALGLIB uses its own defined types: real_1d_array, real_2d_array,... I tried to do like follow:

real_2d_array x;
for (int i=0;i<=nbmax-1;i++) x[0][i]=X[i]; where X[i] is my double data variable

but I receive the error:
[Linker Error] Unresolved external 'alglib::real_2d_array::~real_2d_array()'
So how can I please use ALGLIB without changing the type of my data variables (which will be really exhausting).
Thank you very much in advance.


Top
 Profile  
 
 Post subject: Re: Data conversion problem
PostPosted: Tue Jul 12, 2011 2:05 pm 
Offline

Joined: Mon Jul 11, 2011 2:47 pm
Posts: 2
Sorry, I didn't read the manual. I found the answer there!!


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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