FLINT3.7.0-dev

acb_theta_sum

Synopsis#include <flint/acb_theta.h>
void acb_theta_sum(acb_ptr th, const acb_theta_ctx_z_struct * vec, slong nb, const acb_theta_ctx_tau_t ctx_tau, arb_srcptr distances, int all_a, int all_b, int tilde, slong prec)source

Evaluates theta functions by summation at the nb pairs (z,τ)(z, \tau) given by the contexts. With all_a (respectively all_b) zero, only a=0a = 0 (respectively b=0b = 0) is computed, otherwise all values; with tilde nonzero, the normalised θ~a,b\widetilde{\theta}_{a,b} are computed. The vector distances of length 2g2^g (common to all zz) sets the precision added for each aa; it may be zero, or the output of acb_theta_eld_distances, which is meaningful when the vectors zz differ by real vectors.

Guides#

Cite this page

The FLINT team, “acb_theta_sum (acb_theta.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/acb_theta/acb_theta_sum.html (generated 2026-11-02).