Vietnam Quantitative Finance Society

User Name
Password
Reply
09-14-2007, 03:14 PM   #11
nguyenxuanson

Core Member
Corporal
No Avatar
 
Join Date: Aug 2007
Posts: 58
Thanks: 1
Thanked 1 Time in 1 Post




Default

yes, I have installed CDT, but have not set up Cygwin. I am looking for step by step set up intruction
Son
nguyenxuanson is offline Reply With Quote
09-16-2007, 12:43 PM   #12
Khoa Tran

Core Member
Master Sergeant
 
Khoa Tran's Avatar
 
Join Date: Jun 2007
Posts: 211
Thanks: 28
Thanked 19 Times in 16 Posts




Default

I'm sorry for not having spare time to answer earlier.

A step by step instruction is probably impossible for me (at least for now). Installing Cygwin is pretty straight forward possibly except choosing which packages to include.

If you're to program in CDT, you need to have make, gcc, g++ under the devel category. If you want to use gsl, it's available under the libs category. If you want to have graphical outputs then you need to have xwindow packages (they are all under X11). Depending on what you do, you may need additional packages.

This link has a list of all packages together with brief explanations.

Unless you change the default path, Eclipse should call the compiler/linker appropriately.
Khoa Tran is offline Reply With Quote
09-17-2007, 12:09 AM   #13
nguyenxuanson

Core Member
Corporal
No Avatar
 
Join Date: Aug 2007
Posts: 58
Thanks: 1
Thanked 1 Time in 1 Post




Default

cool, I have europa release and it work witg cygwin flawlessly.
open question
just wonder how to have it work other compiler like intel c++ or visual c++.
nguyenxuanson is offline Reply With Quote
09-17-2007, 11:06 AM   #14
Khoa Tran

Core Member
Master Sergeant
 
Khoa Tran's Avatar
 
Join Date: Jun 2007
Posts: 211
Thanks: 28
Thanked 19 Times in 16 Posts




Default

I haven't tried but this should work:

By default, Eclipse generates the makefile automatically. In the project properties, deselect this feature. Create a makefile yourself in the project directory. In the makefile, you can call whatever you want, even Solitaire instead of a C++ compiler.
Khoa Tran is offline Reply With Quote
09-19-2007, 07:16 AM   #15
Khoa Tran

Core Member
Master Sergeant
 
Khoa Tran's Avatar
 
Join Date: Jun 2007
Posts: 211
Thanks: 28
Thanked 19 Times in 16 Posts




Default

References for numerics programming in C++
My friend, Dag Lindbo at NADA (KTH), has written some guidelines for numerical C++, short but quite useful. Here's the link: http://www.nada.kth.se/~dag/index.php?n=Dl.GuidelinesForNumericalC

His page also links to a "C++ Programming for Scientists" course and to Object-Oriented Numerics Page (but in scientific computing research, abusing OOP is many times discouraged due to computational inefficiency <- this is still debatable though).


For plotting
Yet another guide on how to do simple 2DPlot (http://na37.nada.kth.se/mediawiki/in...le_2D_plotting) or 3DPlot (http://na37.nada.kth.se/mediawiki/index.php/Simple_surface_plotting), also written also by NADA guys.


Numerical Linear Algebra Library
For matrix/vector operations:For solving linear systems:
  • Dense matrices: LAPACK is the standard
  • Sparse matrices: implement an iterative method ourselves Well, there are some library for sparse systems out there but I haven't seen enough testimonials. Moreover, iterative methods are simple enough to implement.
General numerical routines (bessel function, fast fourier transform, random number generation, etc.): GSL is my choice

Last edited by Khoa Tran; 09-19-2007 at 07:56 AM.
Khoa Tran is offline Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Save or bookmark this site with: Del.icio.usStumble It!AddThis.com
All times are GMT +7. The time now is 07:50 AM.
Powered by vBulletin Version 3.7.2