Skip to content

Performance numerical Python with IPython notebook examples

Notifications You must be signed in to change notification settings

taldcroft/perf_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wicked fast computation with Python

  • Python is a dynamic language with no built-in static typing.
  • Pure Python is generally slow for numeric computation.

In this notebook I go through a series of techniques that are available for making numerical code fast within Python. This is heavily based on the examples found in Performance Python and the Speeding up Python blog post by Travis Oliphant.

Before you make it faster

Profiling!

Sometimes you'll be surprised where your code is spending time.

Two places to start:

Options not covered

The problem

Solve the 2D Laplace equation with a specified boundary condition using an iterative finite difference scheme (four point averaging, Gauss-Seidel or Gauss-Jordan).

About

Performance numerical Python with IPython notebook examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published