(Note that this is not generating the most efficient possible code, because it is computing all of the polynomial terms independently, when in principle they could share multiplications. A more efficient version would precompute x1^2,x1^3,x1^4,.... and so on for each of the variables, using repeated multiplication rather than ^, and then use these precomputed powers. If N is large this will make a big difference in the speed. The nice thing about code generation is that it is really practical to pull out all the tricks, without losing flexibility, when performance really matters.)
- [julia-users] Re: Generate polynomial expression on th... Steven G. Johnson
- Re: [julia-users] Re: Generate polynomial express... Júlio Hoffimann
- Re: [julia-users] Re: Generate polynomial exp... David Gold
- Re: [julia-users] Re: Generate polynomial... David Gold
- Re: [julia-users] Re: Generate polynomial exp... Steven G. Johnson
- Re: [julia-users] Re: Generate polynomial... Júlio Hoffimann
- Re: [julia-users] Re: Generate polyno... Matt Bauman
- Re: [julia-users] Re: Generate p... Júlio Hoffimann
- Re: [julia-users] Re: Generate p... Matt Bauman
- Re: [julia-users] Re: Generate polyno... Steven G. Johnson
- Re: [julia-users] Re: Generate p... Steven G. Johnson
- Re: [julia-users] Re: Generate p... Júlio Hoffimann
- Re: [julia-users] Re: Genera... Júlio Hoffimann
- Re: [julia-users] Re: Genera... Kristoffer Carlsson
- Re: [julia-users] Re: Genera... Júlio Hoffimann
- [julia-users] Re: Generate polynomial expression on th... Daniel O'Malley
- Re: [julia-users] Re: Generate polynomial express... Júlio Hoffimann
