-1

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?

3
  • Is the concern about speed or about hiding code? Commented 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. Commented 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)? Commented Aug 9, 2012 at 14:59

1 Answer 1

0

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").

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.