Conversation
|
This is already being worked on in Strided |
|
Is it possible to capture all cases like this? |
|
This is exactly the case I already hit, in which case we know the |
|
FWIW I really don't think we need to worry about all cases, it's probably enough to cover |
|
Doing this in |
|
Hmmm, I see your point, but honestly I would still just add the wrapper here, rather than implicitly assuming this is handled upstream. If we ever decide to change the matrix type, and this now changes into a type that you did not specifically handle in Strided, this would break again, and the addition here really doesn't hurt 😉. |
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
This is a very minor change that avoids falling back to
generic_matmatmulfor the signaturemul!(::StridedView, ::StridedView, ::Matrix, ::Number, ::Number), simply by promoting the matrix to aStridedViewas well.Seems to lead to a slight speed-up in my cases, but is typically subleading. Nevertheless, probably better in the long run.