I was comparing Matlab with Python Scipy, Numpy and Matlplot. I searched the net and found many people were in favor of Python over Matlab. I don't know whether Python is full replacement of Matlab but I want to ask a particular question. In Matlab, you can generate C code corresponding to your Matlab program. I want to know whether this provision is there in Python Scipy as well. So if a user had implemented some thing using Python over Matlab, will it still be possible to generate C Code out of it?
-
Is the concern about speed or about hiding code?tacaswell– tacaswell2012-08-08 23:18:18 +00:00Commented Aug 8, 2012 at 23:18
-
This is about code not sped, i have other set of applications purely written in C/C++ and requires this piece of C code such that it can be integrated in it.sarbjit– sarbjit2012-08-09 06:21:30 +00:00Commented Aug 9, 2012 at 6:21
-
Which way do you want to do the integrating? The python into the other applications or the other applications into the python (there are too many its and I have grown confused)?tacaswell– tacaswell2012-08-09 14:59:31 +00:00Commented Aug 9, 2012 at 14:59
Add a comment
|
1 Answer
You can write python code to run at C speed using Cython. Cython basically convert python code to C code under the hood and then compile to a C library compatible with python (so you can "import module").