# rougier/from-python-to-numpy

An open-access book on numpy vectorization techniques, Nicolas P. Rougier, 2017

Repository: https://github.com/rougier/from-python-to-numpy
Canonical: https://ross.abutalabs.com/products/from-python-to-numpy
Homepage: http://www.labri.fr/perso/nrougier/from-python-to-numpy
Language: Python
License: NOASSERTION
License Family: other
Topics: python, numpy, vectorization, book, open-access, cc-by-nc-sa
Last push: 2025-05-06T05:34:36+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 20, release rhythm 8, longevity 100
- inputs: {"age_days": 3583, "days_push": 484, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2148, forks 350 (observed 2026-08-28T04:06:19.064510+00:00)

## What it is
An open-access book by Nicolas P. Rougier (2017) teaching NumPy vectorization techniques for migrating from pure Python to array-based computing. It covers code, problem, and custom vectorization with worked examples like path finding and fluid dynamics.

## Use cases
- learn how to vectorize Python loops with numpy
- speed up slow python numerical code
- understand numpy array memory layout, views and copies
- learn broadcasting and reshaping techniques
- study vectorized solutions to pathfinding and simulation problems
- find a free book on numpy best practices

## When to choose
- you know Python and want to write faster numerical code with NumPy
- you prefer learning vectorization through worked examples rather than API references
- you want a free, open-access resource

## When to avoid
- you need a beginner introduction to Python itself
- you want up-to-date coverage of newer NumPy features or alternatives like JAX
- you need a reference manual rather than a conceptual book

## Facets
- artifact type: learning-resource
- maturity: stable
- function: data-science, math, developer-tools
- domain: data-science, tutorials, programming-languages
- platform: python, cross-platform
- tags: numpy, vectorization, open-access-book, scientific-computing, performance

## Member repositories
- rougier/from-python-to-numpy (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:19.064510+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:51:07.562459+00:00, confidence not recorded.
  - readme: https://github.com/rougier/from-python-to-numpy (fetched 2026-08-28T04:06:19.064510+00:00, sha 346d0e50a42f)
  - homepage: http://www.labri.fr/perso/nrougier/from-python-to-numpy (fetched 2026-08-29T10:31:00.644865+00:00, sha 8c11fb1e6822)
- Data as of 2026-08-30T08:39:29.467469+00:00.
