flintlib / arb

Arb has been merged into FLINT -- use https://github.com/flintlib/flint/ instead
http://arblib.org/
GNU Lesser General Public License v2.1
456 stars 137 forks source link

Add `_acb_vec_exp` in order to speed up computations of Fourier series #388

Closed albinahlback closed 2 years ago

albinahlback commented 2 years ago

It would be nice to have a function like _acb_vec_exp(acb_struct * res, acb_t x, slong n) that evaluates exp(x), exp(2 x), ..., exp(n x). There is some work that has to be made in order to vectorize a[r/c]b_exp, but it could shave of some time when computing Fourier series.

fredrik-johansson commented 2 years ago

You can use _acb_vec_set_powers for this.

albinahlback commented 2 years ago

Yeah, that's true. I was thinking about the precision, but in that case I could just increase the precision. Thanks.