Learning C++ coming from MATLAB (an applied maths background)

Apr 27, 2013 at 7:09am
Hi All,

I am a MSc student from an applied mathematics background. The majority of my programming experience has been in MATLAB, work involving lots of matrices, vectors, mathematical programming algorithms etc.

I am currently in the process of "migrating" from MATLAB to C++. I have been told that this is a good move if one wants to effectively harness the powers of CUDA cores for my research, eventually.

Can anyone advise me on how I should go about learning C++, given the field I am coming from? Also, there are so many textbooks out there with differing reviews. Is there a good C++ textbook that possibly has a more scientific/mathematics flavour to it whilst also accommodating C++ beginners?

Thanks,

Ray
May 12, 2013 at 8:19am
So I'm going to try "Thinking in C++" by Bruce Eckel. I got it free off the net and starts from basically the beginning.
May 12, 2013 at 9:50am
I suggest you edit your first post and move this thread from Beginners to Lounge, where it belongs.

Can anyone advise me on how I should go about learning C++, given the field I am coming from?

Given the field you're coming from, I'd suggest you check out the languages J and Haskell. (I found J to be a bit esoteric, but very math-oriented.)

http://en.wikipedia.org/wiki/J_%28programming_language%29
http://en.wikipedia.org/wiki/Haskell_%28programming_language%29

I do not want, however, to "derail" you.

If you want to learn C++ you're on the right track with Eckel's free ebooks. And you found this forum, where you can ask C++ questions. It also has a fast paced C++ tutorial:

http://cplusplus.com/doc/

And then you may want to bookmark these sites:

http://en.cppreference.com/w/
http://www.parashift.com/c++-faq/
http://c-faq.com/
http://stackoverflow.com/
http://www.horstmann.com/cpp/pitfalls.html
http://yosefk.com/c++fqa/
Last edited on May 12, 2013 at 9:50am
Topic archived. No new replies allowed.