User:Richli/Scientific Python old

From ArchWiki
< User:Richli
Revision as of 06:07, 21 March 2012 by Richli (talk | contribs) (Flesh out some basics)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

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.