forum.alglib.net

ALGLIB forum
It is currently Fri Apr 19, 2024 10:15 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: Re: nleq with C#
PostPosted: Thu Jun 16, 2011 10:54 pm 
Offline

Joined: Sun May 16, 2010 11:42 pm
Posts: 63
Quote:
Since I can only give one value back at a time to Excel


You don't say how you are communicating between Excel and C#, but it is possible to return an array to Excel.

in VBA: Range("XLRange").Value = CSArray

Where CSArray is any array, and XLRange is a range address or range name with the same dimensions.

_________________
Doug Jenkins
http://newtonexcelbach.wordpress.com/


Top
 Profile  
 
 Post subject: Re: nleq with C# for nonlinear equations
PostPosted: Sun Jun 19, 2011 1:13 am 
Offline

Joined: Sun May 16, 2010 11:42 pm
Posts: 63
Student - I haven't used Excel DNA, so I can't give any specifics, but I'm sure it's possible to return three values to Excel without runing the Alglib function three times. If your Excel routine is written as a sub you should be able to just write the values to the spreadsheet. If it is written as a user defined function you will need to return the values as a variant array, which can be entered as an array function, or you could use the Index function to access the values in the array.

_________________
Doug Jenkins
http://newtonexcelbach.wordpress.com/


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