fjames86 / fpoly

Manipulate dense multivariate polynomials
0 stars 0 forks source link

efficient multiple-argument operations #9

Closed fjames86 closed 11 years ago

fjames86 commented 11 years ago

should be possible to perform operations, e.g. addition, on a set of polynomials all in one go, rather than having to chain calls to fpoly-add. I.e. allow (fpoly-add fp1 fp2 fp3 ...). A similar thing could probably be done with multiplications.

fjames86 commented 11 years ago

Should be quite easy. There are lots of (reduce #'fpoly-add ...) operations in the code so this could be quite an improvement in some places.

fjames86 commented 11 years ago

done. called fpoly-sum and seems to be somewhat faster than the previous idiom of (reduce #'fpoly-add ...).