Closed Yunuuuu closed 9 months ago
Thanks for reporting this! I'm honestly quite surprised this bug slipped through -- I think I hadn't sufficiently tested the case of multiplying by a single number rather than a vector. I've added some randomized tests that hopefully cover this and all related issues I haven't thought of.
The core challenge here is tricky logic to combine multiplications and additions into as few operations as possible, hence the possibility of bugs.
I think this should be fixed with my most recent commit, but feel free to reopen/comment if you still have problems
A small examples:
Created on 2024-01-31 with reprex v2.0.2