forum.alglib.net

ALGLIB forum
It is currently Sat Apr 20, 2024 3:18 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: multiple conflicting definitions of nleqstate
PostPosted: Mon Aug 15, 2011 8:45 pm 
Offline

Joined: Mon Aug 15, 2011 8:37 pm
Posts: 1
There are two different definitions of nleqstate, one in namespace alglib_impl, and another in namespace alglib.
nleqcreatelm uses first definition, while nleqsolve uses second definition.
Per documentation,
1. User initializes algorithm state with NLEQCreateLM() call
2. User tunes solver parameters with NLEQSetCond(), NLEQSetStpMax() and
other functions
3. User calls NLEQSolve() function which takes algorithm state and
pointers (delegates, etc.) to callback functions which calculate merit
function value and Jacobian.

How, algorithm state can be passed from nleqcreatelm to nleqsolve, when they use different state structures?


Top
 Profile  
 
 Post subject: Re: multiple conflicting definitions of nleqstate
PostPosted: Tue Aug 16, 2011 7:40 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 906
There are no multiple definitions, because there are two different definitions (although with same name) from two different namespaces:
* alglib_impl::nleqstate, low-level structure which handles all implementation details
* alglib::nleqstate, high-level wrapper around alglib_impl::nleqstate

Every interface function from ALGLIB has two implementations: one from alglib namespace (front-end) and another one from alglib_impl namespace (actual implementation). You've accidentally found alglib_impl::nleqcreatelm instead of alglib::nleqcreatelm - that's why you've decided that nleqcreatelm and nleqsolve use different structures.


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 45 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