# Difference between revisions of "User:Richli/Scientific Python old"

(Flesh out some basics) |
|||

Line 1: | Line 1: | ||

==Introduction== | ==Introduction== | ||

− | Several packages exist for scientific/numerical computing using [[python|Python]]: typical ones include numpy, scipy, and matplotlib. These are commonly used to provide a free alternative to [[matlab]]. | + | Several packages exist for scientific/numerical computing using [[python|Python]]: typical ones include numpy, scipy, and matplotlib. These are commonly used to provide a free alternative to [[matlab]]. (TODO: mention other packages, like chaco, mayavi, scikits, etc?) |

==Installation== | ==Installation== |

## Revision as of 06:08, 21 March 2012

## Introduction

Several packages exist for scientific/numerical computing using Python: typical ones include numpy, scipy, and matplotlib. These are commonly used to provide a free alternative to matlab. (TODO: mention other packages, like chaco, mayavi, scikits, etc?)

## Installation

numpy, scipy, and matplotlib are all available in extra/community (TODO: add links).

## Improving Performance

### ATLAS

numpy and scipy use basic blas/lapack routines, but using atlas (AUR) will fine-tune these basic routines to the processor architecture (TODO: talk more about atlas).

Unfortunately, numpy does not seem to recognize atlas unless it's rebuilt with atlas already present on the system. So we use the ABS to rebuild numpy after installing atlas.

### FFTW

(TODO: Add background to FFTW) Recent versions of numpy/scipy no longer use FFTW. python-fftw3 from AUR is a python wrapper to extra/fftw.

Show code examples to use python-fftw.