Commutative matrix multiplication algorithm

ID: commutative-matrix-multiplication-algorithm

Commutative matrix multiplication algorithm by Ciro Santilli 37 Created 2025-05-21 Updated 2025-07-16
A "commutative matrix multiplication algorithm" is a matrix multiplication algorithm that requires the ring to be commutative. Such algorithms are inferior because you cannot use them to create more efficient algorithms for general matrix matrix multiplication by decomposing the bigger matrix into smaller ones.
For example, the Strassen algorithm is based on reduction to non-commutative 2x2 matrix multiplication optimized to be done in 7 multiplications rather than 8 as in the native algorithm.

New to topics? Read the docs here!