AI engineering glossary · NumPy pandas visualization

What is strides?

Strides: The number of bytes NumPy must skip in memory to move one step along each axis of an array. They explain how views, slices and transposes can reinterpret the same data without copying it, and why the order in which you loop over an array affects speed.

Level: advancedTopic: NumPy pandas visualization

Strides: an example

For a C-ordered float64 array of shape (3, 4), strides are (32, 8): 8 bytes to the next column and 32 to the next row.

Related terms

More NumPy pandas visualization terms

Where you learn it

Strides is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.