AI engineering glossary · NumPy pandas visualization

What is c order?

C order (also called row-major order, Fortran order): Row-major memory layout, the NumPy default, in which the elements of each row sit next to each other in memory and the last index changes fastest. Its counterpart, Fortran order, stores columns contiguously. Layout affects iteration speed and how reshape and ravel read elements.

Level: advancedTopic: NumPy pandas visualization

C order: an example

In a C-ordered 2 by 3 array, the memory order is row 0 values first, then row 1 values.

Related terms

More NumPy pandas visualization terms

Where you learn it

C order 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.