High Performance Python (from Training at EuroPython 2011) by Ian Ozsvald - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

CHAPTER

FIVE

 

USING THIS AS A TUTORIAL

If you grab the source from https://github.com/ianozsvald/EuroPython2011_HighPerformanceComputing (or Google for “ianozsvald github”) you can follow along. The github repository has the full source for all these examples (and a few others), you can start with the pure_python.py example and make code changes yourself.

You probably want to use numpy_loop.py and numpy_vector.py for the basis of some of the numpy transformations.