Numerical libraries for C#

Numerical libraries for C#

Postby Yoda » Fri Aug 24, 2007 11:08 am

Greetings.



I suppose that every C# programmer requires

a numerical library to handle things like complex

numbers, linear algebra, random number

generators, statistics, optimization, etc.



What libraries are people using? I have found

two: Extreme Optimization and CenterSpace.

Both cost around $1000 but the latter is open

source, which will make it a better choice for me.



Regards,

Yoda.
Yoda
 
Posts: 4
Joined: Wed Aug 22, 2007 10:39 pm

WebCab Components

Postby DrBen » Tue Dec 02, 2008 5:05 pm

There are now a large number of vendors including my software available

at (sorry for plug):



http://www.webcabcomponents.com



The best source for finding C# component vendors in particular (and

software components in general) is Google!, ideally there would be a

active review site but this have never caught on.
DrBen
 
Posts: 3
Joined: Tue Dec 02, 2008 11:32 am

Postby Cuchulainn » Thu Dec 25, 2008 9:03 pm

DrBen,

Maybe this could be a good site for posting new C# libraries



Chart control library



http://code.msdn.microsoft.com/mschart
User avatar
Cuchulainn
 
Posts: 676
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Postby Cuchulainn » Thu Dec 25, 2008 9:05 pm

User avatar
Cuchulainn
 
Posts: 676
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Re: Numerical libraries for C#

Postby Excel4Net » Wed Dec 31, 2008 6:44 am

Yoda wrote:Greetings.



I suppose that every C# programmer requires

a numerical library to handle things like complex

numbers, linear algebra, random number

generators, statistics, optimization, etc.



What libraries are people using? I have found

two: Extreme Optimization and CenterSpace.

Both cost around $1000 but the latter is open

source, which will make it a better choice for me.



Regards,

Yoda.




Hello Yoda,



I've been using Extreme Optimization 2.2 and 3.0 for some time and it seems like a good library, thought might not be very elegant from a developer's point of view (e.g. inheritance hierarchy does not look as it was well thought out), but it works well, reasonbly simple to get started and use. Never had any major issues with it.



Some of the functions come in two versions: managed and unmanaged (CPU native) versions (apparently for performance reasons) - but I had never used the unmanaged functions - so I can't comments how good or fast unmanaged-native bits are.
User avatar
Excel4Net
 
Posts: 8
Joined: Fri Dec 26, 2008 2:42 am

Postby DrBen » Tue Jan 06, 2009 11:04 pm

Cuchulainn,



Great links, having a multi-threading enabling tool would be very handy for C#. Also, the chart DLL looks very polished but MS usually leaves such gaps in the product market for others to fill. Just to create a separate eco-system from itself. I cannot see how all those charting component vendors will be able to compete with MS Charting component over the long term.



Best Regards,



Ben
DrBen
 
Posts: 3
Joined: Tue Dec 02, 2008 11:32 am

Postby JLMARTIN » Sun Feb 03, 2013 9:37 pm

Hi all,



any recommendation for connecting C# to MS SQL? I ussually use an object of Linq to SQL class, but I guess there must be something more complete



Regards
JLMARTIN
 
Posts: 16
Joined: Mon Jul 30, 2012 9:52 am

Postby Cuchulainn » Sun Feb 03, 2013 10:57 pm

hi JL,

This book is a good place to start

http://www.amazon.com/ADO-NET-Cookbook- ... 0596004397



I have done C# and ADO.NET for SQL Server, Access, MySQL and even Excel and it was a wonderful experience. Very intuitive.



It is also easy to port C# to Managed C++/CLI as well.



hth



Daniel
User avatar
Cuchulainn
 
Posts: 676
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Postby JLMARTIN » Mon Feb 04, 2013 4:57 pm

Hi Daniel



Thanks for the info



My experience with ADOs is with VBA, and althoug they're easy to deal with, I had to writte a wrapper for every table I had...



I also did some examples with C++ and again, I had to writte a wrapper...



For .NET however, I just add the table I want to use as an object and that's it. At least for me it's easier



Anyway, Thanks for the book Daniel, it seems it's a good resource



Regards
JLMARTIN
 
Posts: 16
Joined: Mon Jul 30, 2012 9:52 am

Postby Cuchulainn » Tue Feb 05, 2013 11:23 pm

With C# (or even Managed C++) ADO.NET is a piece of cake.
User avatar
Cuchulainn
 
Posts: 676
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Postby JLMARTIN » Fri Feb 08, 2013 12:23 pm

Hi Daniel



I just come to you again.



I have a surface (i.e. s=f(x,y)) that I need to fit with a polynomial function using levenberg-marquardt algorithm.



In matlab it's quite easy, since I use lsqnonlin function, but I'm getting desperated to do this in C#



Any idea?



I read that alglib has this algorithm but I just see the example to fit a curve (i.e. s=f(x)) not a surface...



Any idea?



thanks!!
JLMARTIN
 
Posts: 16
Joined: Mon Jul 30, 2012 9:52 am

Postby JLMARTIN » Wed Feb 13, 2013 12:22 pm

JLMARTIN wrote:Hi Daniel



I just come to you again.



I have a surface (i.e. s=f(x,y)) that I need to fit with a polynomial function using levenberg-marquardt algorithm.



In matlab it's quite easy, since I use lsqnonlin function, but I'm getting desperated to do this in C#



Any idea?



I read that alglib has this algorithm but I just see the example to fit a curve (i.e. s=f(x)) not a surface...



Any idea?



thanks!!




Hello



any idea I can start from?



thanks!
JLMARTIN
 
Posts: 16
Joined: Mon Jul 30, 2012 9:52 am

Postby Cuchulainn » Fri Feb 15, 2013 6:08 pm

JL,

Can you describe the problem? Is it interpolation and/or minimisation?



And/or a typical scenario?
User avatar
Cuchulainn
 
Posts: 676
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Postby JLMARTIN » Fri Feb 15, 2013 7:48 pm

Thanks for your reply Daniel



Using matlab (lsqnonlin) I fit an implied vol surface (of an eqquity) using a function y=f(moneyness, ttm) (i.e. two variables).



The way I do this is by a least square minimisation. I've checked internet (your book too) but all I find are examples of fitting a curve (i.e. y=f(x) one variable).



Even I tried QuantLib but couldn't modify the algortithm to work for surfaces succesfully... :(



I've checked alglib out as well, but it seems the same, it has minimization for one variable functions ut not for two variable functions



any idea where I can find something similar?
JLMARTIN
 
Posts: 16
Joined: Mon Jul 30, 2012 9:52 am

Postby Cuchulainn » Sun Feb 17, 2013 7:01 pm

Hi JL,



Offhand, is ROOT (from CERN) a possibility?



http://root.cern.ch/root/html/tutorials ... ion.C.html



D



also www.oonumericcs.org
User avatar
Cuchulainn
 
Posts: 676
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Next

Return to C#

Who is online

Users browsing this forum: No registered users and 1 guest

cron