# Matrix Multiplication Algorithms for Non-Square Matrices

I'm interested in learning about some of the algorithms available for multiplying non-square matrices, yet despite exhaustive Googling efforts I have been unable to find any discussions of such algorithms except for a couple of extremely general pieces of pseudocode that I found on Wikipedia and MIT OCW.

If anyone could pass on some links to papers that discuss these algorithms in greater detail, I would greatly appreciate it! Thanks!

• Hint: what are the dimensions for two matrices $A$ and $B$ such that $AB$ is defined? Commented Mar 22, 2015 at 6:19
• That's a pretty broad question. Can you be more specific? What's wrong with what you've found? Have you looked in textbooks? Are you looking for a straightforward algorithm, or one that uses blocking and other techniques to take into account the memory hierarchy and the size of cache lines?
– D.W.
Commented Mar 22, 2015 at 6:44
• @D.W. I'm basically looking for anything other than the basic iterative algorithm. The problem is that so far I've only found vague mentions of the existence of such algorithms and the "concept" behind how they use binary splitting to decompose rectangular matrices into smaller rectangular matrices for multiplication. I read that there's a generalization of Strassen's algorithm to rectangular matrices, but I can't find of precise description of its implementation anywhere. I saw mentions of such algorithms in the textbook by Vazirani/Dasgupta/Papadimitriou and various online resources. Commented Mar 22, 2015 at 6:58

There is an algorithm due to Coppersmith (later improved by him) that can multiply an $N \times N^\alpha$ matrix by an $N^\alpha \times N$ matrix in time $\tilde{O}(N^2)$ for some $\alpha > 0$. The state of the art in this regard is a paper by Le Gall achieving a better $\alpha$, though his algorithm is much more complicated than Coppersmith's. Both algorithms are probably impractical. Ryan Williams (Appendix C) explains how to implement Coppersmith's algorithm, which a priori is non-uniform, in the context of a circuit lower bound; later it was shown that Coppersmith's algorithm can be replaced by other ingredients.
• What is the meaning of $\tilde{O}(N)$? The Coppersmith papers and others seem to be about product of matrices with very specific rectangular proportions. Is that a way of providing a basic complexity brick to be used in decomposition of actual matrices, whether square or rectangular, when having to compute a product? Commented Mar 22, 2015 at 17:10