Download Scientific Computing Beyond Matlab

yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
• Requires a C compiler
• Cython is Python with C data types.
– Dynamic typing of Python has overhead, slow for computation
• Allows seamless coding of Python and embedded C-speed routines
• Python values and C values can be freely intermixed, with
conversions occurring automatically wherever possible
– This means for debugging C-level code, we can use all the plotting
tools available in Python
• Process is sort of like EPIC
1. Write a .pyx source file
2. Run the Cython compiler to generate a C file
3. Run a C compiler to generate a compiled library
4. Run the Python interpreter and ask it to import the module