2 ms·
> BLAS will still need O(N^3) operations for a NxN matrix multiplications, whether they are optimized or not. Why wouldn't they use an algorithm that is better
by tzs 15y ago
> BLAS will still need O(N^3) operations for a NxN matrix multiplications, whether they are optimized or not.
Why wouldn't they use an algorithm that is better than O(N^3)?
- stephencanon 15y agoTwo reasons: first, the matrix multiply algorithms with exponents less than three do not have the same numerical stability properties, which can introduce subtle bugs into software that was developed with the expectation of a "usual" O(n^3) multiplication being used. This makes it unsuitable for use in a general-purpose library. Second, although algorithms with smaller exponents exist, there is more to high-performance than asymptotic complexity. In particular, the constant factors associated with these "fast" algorithms are typically large enough that there is no benefit to using them for "reasonable" matrix sizes.