fjames86 / fpoly

Manipulate dense multivariate polynomials
0 stars 0 forks source link

cache power lists #6

Closed fjames86 closed 11 years ago

fjames86 commented 11 years ago

currently, the power list has to be computed each time a polynomial is created with make-fpoly. This is a waste of effort since we do not perform any destructive operations on these, we could pre-compute a table of power lists for e.g. nvars <= 5 and degree <= 20. making a new fpoly would then simply involve setting the powers slot to the appropriate precomputed list, rather than having to cons up a new one.

fjames86 commented 11 years ago

done