Hands-on array computing. Conceptual linear algebra: ../math/math.md. Runnable examples: study.py.
Official reference: NumPy module structure.
- NumPy’s main object is the homogeneous multidimensional array — many like-typed items in one block
- Dimensions of an array are called axes
- One axis can hold coordinates along one dimension
- Length of an axis = number of elements on that axis
- Example:
[6, 7, 8]has length 3
- Example:
- Element types can be specified (beyond plain Python scalars)
- Use NumPy dtypes such as
numpy.float64,numpy.int16for fixed-width numeric storage
ndarray(also exposed asarray) is NumPy’s array class- Build matrices (and higher-rank tensors) with chosen shapes and dtypes
- Creation helpers and indexing practice are in study.py