How to Embed Matlab/Octave/R/Python in CPP


When you are doing some computations in C++ you might not want to write everything yourself including optimizing advanced algorithms. You would want to reuse code or write it in a numerical computing environment such as matlab, octave, R, or python. In this post I link to sources that explain how to include such high-level code in C++ or to call it from a C++ program.

How to embed matlab code in C++? Seems a little involved but works on windows and linux.

How to embed octave code in C++? See this post for examples (haven't tried it myself).

How to embed GNU R code in C++? Seems very simple. Use Rinside!

You'll find explanations of embedding python in C++ in this article and this post.

Disclaimer: Of the linked material, I only saw Rinside in action.

4 Responses to "How to Embed Matlab/Octave/R/Python in CPP"

I really appreciate your post and you explain each and every point very well.Thanks for sharing this information.And I’ll love to read your next post too.
Regards:
NABH

Useful information ..I am very happy to read this article..thanks for giving
us this useful information. Fantastic walk-through. I appreciate this post.


hcg            
 

hcg            
 

 You would poverty to reuse encrypt or correspond it in a denotive technology environs much as matlab, interval, R, or python. In this office I fastener to sources that inform how to permit specified high-level.





Digital
still camera

  Subscribe to replies to this post

 
This conversation is missing your voice. Your feedback is appreciated.
Post a Comment


You can use some HTML tags, such as <b>, <i>, <a>

If you see a message that says "your request could not be processed" press preview first and then post.
 
You can follow the discussion of this post by subscribing.


 
You are free to include information from this article on your own site if you provide a backlink. You can use the following markup:
<a href="http://www.myoutsourcedbrain.com/2009/09/how-to-call-matlaboctaver-from-cpp.html">How to Embed Matlab/Octave/R/Python in CPP</a>