Remove special-cases for scalars in contractions#99
Conversation
eb69798 to
38f4c68
Compare
This comment has been minimized.
This comment has been minimized.
|
So, should it actually be removed? |
|
I need to investigate this some more. Some of the failures are just addition reordering, which can be easily fixed. The other half look like actual bugs. Leaving this as a draft for now, I probably need a piecewise approach to work out which bit is broken. Edit: fixed all the issues in the earlier PRs, this now works just fine |
38f4c68 to
4aab143
Compare
It's possible this will be marginally slower, but it makes everything much easier to read.
4aab143 to
3e7c389
Compare
Codecov Report
Continue to review full report at Codecov.
|
|
Some timings: Before: After: No significant change in the general case. Probably faster for a pure scalar contraction, but that doesn't seem like a case worth optimizing for. |
utensil
left a comment
There was a problem hiding this comment.
We can always have them back if one day these special treatments are really needed.
It's possible this will be marginally slower, but it makes everything much easier to read.