C function vs Fortran function performance

Antonio M
Total Points:
60
Status Points:
10
Green Belt
November 26, 2008 10:38 PM PST
Rate
 
#6
In my opinion, it all depends from the model you want to realize.
If your model can be just expressed in matrix terms, then nothing beats fortran efficency and expressivity.
In all other cases C++ is the best choice.
Just to give a more concrete example: if I want to model a soft computing technique like, for example, a neuro-fuzzy engine to process certain data, I would surely use C++. Would I need to realize a code for a fluid dynamics simulator using pseudospectral methods, I would surely use Fortran.
Best thing is that, as already underlined, using F2003 ISO_C modules you have full interoperability between languages, so it's common for me to call C++ routines from Fortran programs and vice versa (just remember to declare C++ "entrance" points as "extern "C"" since ISO_C is designed to manage interoperability with C) without sacrifying portability.

 



Intel Software Network Forums Statistics

8492 users have contributed to 31630 threads and 100777 posts to date.
In the past 24 hours, we have 27 new thread(s) 124 new posts(s), and 165 new user(s).

In the past 3 days, the most popular thread for everyone has been Implicite multithreading ??? The most posts were made to Crash when loading skeleton The post with the most views is Dear Steve, excuse me for a d

Please welcome our newest member mdward