Fortran's Column-Major: Aligned with Mathematical Notation

Fortran, designed for scientific computation, adopted column-major order because it aligns with standard linear algebra conventions where matrices are often viewed as collections of column vectors. This made operations like matrix multiplication more intuitive and efficient for its target domain.

The top 3

  1. Fortran's Column-Major: Direct Math Mapping: Fortran's original design prioritized a direct mapping to mathematical matrix notation, where column vectors are fundamental in linear algebra, making column-major storage intuitive for scientists.
  2. BLAS/LAPACK's Fortran Memory Blueprint: Foundational linear algebra libraries like BLAS and LAPACK were developed in Fortran, establishing column-major order as a de-facto standard for high-performance scientific computing data layouts.
  3. Bridging Fortran & C/C++ Memory Gaps: When integrating Fortran with row-major languages like C/C++, developers must explicitly handle memory layout differences, often by transposing matrices or adjusting indexing to avoid performance penalties or incorrect results.

Sources

Open the full topic