numerical library in C#

  • Thread starter Thread starter schouwla
  • Start date Start date
S

schouwla

Does anyone know of a good open source library writte in C# ?
I need optimization, root finding, minimization, interpolation etc..

Regards
Lars
 
Try netlib.org. I used the cephes mathematical library that was written
in C but than you can
use DllImport to import the C functions into C#.

Good luck !

Zoltan.
www.konor.org
 
Zoltan,

Will there be a huge performance problem when I wrap in c code?
Performance lost when setting up the call and reading in the result
from dotnet to c?

Lars
 
Hi Lars,

I do not have specific knowledge that it would be slow but i think that
it should be fast since the functions are fetched from a dll where the
dll holds the pre-loadable versions
of the functions. All it has to do is to look up the entry point of the
function in the dll.
When you do it in Visual Studio, it happens through the name of the
functions. If you view the content of the dll, then you will see the
names of the functions that you are calling.
Once the code is compiled i guess that the call goes by direct address
and so on.

So to answer your question i should think that DllImport does not cause
significant performance loss in your program.

Zoltan.


(e-mail address removed) írta:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top