Skip to content

Glossary: Linear Algebra for ML

Slicing

Also written: slice, indexing

Picking a range of elements with `a[start:stop]`, or `A[rows, cols]` for a matrix. In NumPy a slice is a view, not a copy.

Where the book teaches it

Related terms

ViewFancy indexing