Yes. There should definitely be optimization here. Much of this optimization could easily leverage the vector optimizations.
There is also the question of what kind of matrix should be returned. A'B can be particularly effectively optimized in our common representations because we commonly use row major storage. On Mon, Jul 29, 2013 at 3:49 PM, Dmitriy Lyubimov <[email protected]> wrote: > It has just occurred to me that neither of SparseMatrix, SparseRowMatrix > and SparseColMatrices have an optimized times() version. > > Not sure why is that? Is it inherently hard/ not worth it/...? There should > be something to do that better than AbstractMatrix$times(), right? >
