numpy-docs
Installation
SKILL.md
NumPy
NumPy is the fundamental package for scientific computing in Python, providing a powerful N-dimensional array object, broadcasting functions, and tools for integrating C/C++ and Fortran code.
Version: NumPy 2.5 (current)
Documentation: numpy.org/doc/stable/user/index.html
GitHub: github.com/numpy/numpy
Quick Reference
| Topic | File |
|---|---|
| Getting Started & Quickstart (What is NumPy, installation, array creation, printing, arithmetic, matrix product, in-place ops, upcasting, unary operations, universal functions, indexing/slicing/iterating, shape manipulation, stacking/splitting, copies and views, advanced indexing: integer/boolean, ix_, linear algebra, histograms, tips & tricks) | getting-started.md |
| Fundamentals (Array creation: 6 mechanisms, intrinsic functions, from disk, raw bytes, library functions; Data types: all numerical types, dtype specification, type conversion, array scalars; Indexing: basic, slicing, ellipsis, newaxis, advanced integer/boolean; Broadcasting: rules, examples, incompatible shapes; Copies and views: views vs copies, key operations table; I/O: genfromtxt, loadtxt, save/load, raw binary, standard formats; Strings and bytes: fixed-width, variable-width StringDType; Structured arrays: field access, datatype creation, subarrays; Universal functions: ufunc methods, type casting, custom ufuncs, error handling, buffer size) | fundamentals.md |
| Advanced (Interoperability: buffer protocol, array, array_ufunc, array_function, DLPack; Performant code: multiprocessing, ProcessPoolExecutor, shared memory, Numba, Cython, Dask; NumPy for MATLAB users: key differences, common equivalents table; How-tos: file I/O, indexing, regularly-spaced values, printing, verifying bugs; C-API: extending NumPy, Python as glue, F2PY, custom ufuncs in C; Under-the-hood: internal organization, strides, C code explanations, memory alignment, byte-swapping, custom array containers, subclassing ndarray; NumPy 2.0 migration: Ruff NPY201, promotion rules NEP 50, default integer, copy keyword, removed functions, C API changes; Glossary: all key terms) | advanced.md |