Using cpp code in python and R

Jun 4, 2015 at 3:52pm
Hello!

I have a following task to do. Lets say I have a simple function written in c++:
1
2
3
4
double** myFunction(double** myPointer)
{
 // some calculations here
}


Now, I would like to use this function in Python and in R. Could you recommend me a easy way of doing it? A tutorial maybe? Should I use rcpp for R? And python.h for Python?

Would be very grateful for any help,
Jeremy
Last edited on Jun 4, 2015 at 3:53pm
Jun 4, 2015 at 5:39pm
Google says for "call c++ from python": https://docs.python.org/2/extending/extending.html

I would presume that the R has no less documentation.

Topic archived. No new replies allowed.