logoalt Hacker News

brcmthrowaway • today at 4:41 AM • 2 replies • view on HN

Can someone explain the significance of this?

I multiply two square matrices in numpy. Will my performance improve?


Replies

turzmo • today at 12:49 PM

One of the issues with translating results like these to the real world is this: we know that the cost (in time) for multiplying matrices is C N^2.25, where C is some constant. Theoretical computer scientists are interested in driving down that exponent as low as possible, independent of what C is.

In this case, and in many others, optimal algorithms have extremely large C's. In fact so large that there is no practical reason to ever use them. My understanding is that all matrices are multiplied in practice naively (O(n^3)) or with Strassen's algorithm (O(n^2.8something)) but that none of the newer (20th century and beyond) algorithms are practical.

traes • today at 5:14 AM

Nope. In fact, this is the exact opposite kind of result: no matter what advances we make, matrix multiplication will never get faster than the best currently known algorithm (in the usual asymptotic sense.)

➕ show 1 reply