Unofficial Hacker News companion — get notified on comment replies, and more.

The matrix multiplication exponent is nine fourths [pdf] (opens external site)

1076 points by E-Reverance 6 days ago | github.com | 618 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (3)

  1. Obviously you can do that, but given how wasteful it is when the dimensions are very different, it seems like it should be possible to do better.
    Replies (2)
    1. It is not wasteful with regards to the theta factor, it might be wasteful from a practical standpoint, but the algorithm is not practical anyway, even for square matrices.
    2. You can subdivide any shape into square shapes, and you get the same bound. You only thinking of rectangles, but that rectangle is a square and some leftover, then recurse on the leftover.

      Matrix multiplications are recursive on shapes. Play with it by hand a while.

      It's how AI accelerators can process tensors with a fixed size matmul silicon block.