Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Express polynomials evaluation using foldr1
Old version had gratious multiplication. For example following would be genrated for ax^3 + bx^62 + cx + d assuming that everything is inlined: d + (c + (b + (a + 0*x)*x))*x New version avoid multiplication by 0. Check for null vector does not brack fusion. For some reason performance is improved all cases. Even if vector is large and not inlined.
- Loading branch information