Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

making argument names in non inline functions to match documentation #1895

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 42 additions & 42 deletions src/acb.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ acb_add_error_arb(acb_t x, const arb_t err)
arb_add_error(acb_imagref(x), err);
}

void acb_get_mag(mag_t z, const acb_t x);
void acb_get_mag(mag_t u, const acb_t x);

void acb_get_mag_lower(mag_t z, const acb_t x);
void acb_get_mag_lower(mag_t u, const acb_t x);

void acb_get_abs_ubound_arf(arf_t u, const acb_t z, slong prec);
void acb_get_abs_lbound_arf(arf_t u, const acb_t z, slong prec);
Expand All @@ -343,9 +343,9 @@ acb_union(acb_t res, const acb_t x, const acb_t y, slong prec)

void acb_arg(arb_t r, const acb_t z, slong prec);

void acb_sgn(acb_t res, const acb_t z, slong prec);
void acb_sgn(acb_t r, const acb_t z, slong prec);

void acb_csgn(arb_t res, const acb_t z);
void acb_csgn(arb_t r, const acb_t z);

void acb_real_abs(acb_t res, const acb_t z, int analytic, slong prec);
void acb_real_sgn(acb_t res, const acb_t z, int analytic, slong prec);
Expand All @@ -356,10 +356,10 @@ void acb_real_max(acb_t res, const acb_t x, const acb_t y, int analytic, slong p
void acb_real_min(acb_t res, const acb_t x, const acb_t y, int analytic, slong prec);
void acb_real_sqrtpos(acb_t res, const acb_t z, int analytic, slong prec);

void acb_sqrt_analytic(acb_t res, const acb_t z, int analytic, slong prec);
void acb_rsqrt_analytic(acb_t res, const acb_t z, int analytic, slong prec);
void acb_log_analytic(acb_t res, const acb_t z, int analytic, slong prec);
void acb_pow_analytic(acb_t res, const acb_t z, const acb_t w, int analytic, slong prec);
void acb_sqrt_analytic(acb_t r, const acb_t z, int analytic, slong prec);
void acb_rsqrt_analytic(acb_t r, const acb_t z, int analytic, slong prec);
void acb_log_analytic(acb_t r, const acb_t z, int analytic, slong prec);
void acb_pow_analytic(acb_t r, const acb_t x, const acb_t y, int analytic, slong prec);

ACB_INLINE void
acb_add(acb_t z, const acb_t x, const acb_t y, slong prec)
Expand Down Expand Up @@ -655,7 +655,7 @@ acb_div_fmpz(acb_t z, const acb_t x, const fmpz_t c, slong prec)
arb_div_fmpz(acb_imagref(z), acb_imagref(x), c, prec);
}

void acb_cube(acb_t y, const acb_t x, slong prec);
void acb_cube(acb_t z, const acb_t x, slong prec);
void acb_pow_fmpz(acb_t y, const acb_t b, const fmpz_t e, slong prec);
void acb_pow_ui(acb_t y, const acb_t b, ulong e, slong prec);
void acb_pow_si(acb_t y, const acb_t b, slong e, slong prec);
Expand All @@ -667,26 +667,26 @@ acb_const_pi(acb_t x, slong prec)
arb_zero(acb_imagref(x));
}

void acb_log(acb_t r, const acb_t z, slong prec);
void acb_log1p(acb_t r, const acb_t z, slong prec);
void acb_log(acb_t y, const acb_t z, slong prec);
void acb_log1p(acb_t z, const acb_t x, slong prec);

void acb_exp(acb_t r, const acb_t z, slong prec);
void acb_exp_pi_i(acb_t r, const acb_t z, slong prec);
void acb_exp_invexp(acb_t r, acb_t s, const acb_t z, slong prec);
void acb_expm1(acb_t r, const acb_t z, slong prec);
void acb_exp(acb_t y, const acb_t z, slong prec);
void acb_exp_pi_i(acb_t y, const acb_t z, slong prec);
void acb_exp_invexp(acb_t s, acb_t t, const acb_t z, slong prec);
void acb_expm1(acb_t res, const acb_t z, slong prec);

void acb_sin(acb_t r, const acb_t z, slong prec);
void acb_cos(acb_t r, const acb_t z, slong prec);
void acb_sin(acb_t s, const acb_t z, slong prec);
void acb_cos(acb_t c, const acb_t z, slong prec);
void acb_sin_cos(acb_t s, acb_t c, const acb_t z, slong prec);
void acb_tan(acb_t r, const acb_t z, slong prec);
void acb_cot(acb_t r, const acb_t z, slong prec);
void acb_tan(acb_t s, const acb_t z, slong prec);
void acb_cot(acb_t s, const acb_t z, slong prec);

void acb_asin(acb_t r, const acb_t z, slong prec);
void acb_acos(acb_t r, const acb_t z, slong prec);
void acb_atan(acb_t r, const acb_t z, slong prec);
void acb_asin(acb_t res, const acb_t z, slong prec);
void acb_acos(acb_t res, const acb_t z, slong prec);
void acb_atan(acb_t res, const acb_t z, slong prec);
void acb_asinh(acb_t r, const acb_t z, slong prec);
void acb_acosh(acb_t r, const acb_t z, slong prec);
void acb_atanh(acb_t r, const acb_t z, slong prec);
void acb_acosh(acb_t res, const acb_t z, slong prec);
void acb_atanh(acb_t res, const acb_t z, slong prec);

ACB_INLINE void
acb_sinh(acb_t y, const acb_t x, slong prec)
Expand Down Expand Up @@ -727,8 +727,8 @@ acb_coth(acb_t y, const acb_t x, slong prec)
acb_mul_onei(y, y);
}

void acb_sech(acb_t r, const acb_t z, slong prec);
void acb_csch(acb_t r, const acb_t z, slong prec);
void acb_sech(acb_t res, const acb_t z, slong prec);
void acb_csch(acb_t res, const acb_t z, slong prec);

ACB_INLINE void
acb_sec(acb_t y, const acb_t x, slong prec)
Expand All @@ -745,24 +745,24 @@ acb_csc(acb_t y, const acb_t x, slong prec)
acb_mul_onei(y, y);
}

void acb_sin_pi(acb_t r, const acb_t z, slong prec);
void acb_cos_pi(acb_t r, const acb_t z, slong prec);
void acb_sin_pi(acb_t s, const acb_t z, slong prec);
void acb_cos_pi(acb_t s, const acb_t z, slong prec);
void acb_sin_cos_pi(acb_t s, acb_t c, const acb_t z, slong prec);
void acb_tan_pi(acb_t r, const acb_t z, slong prec);
void acb_cot_pi(acb_t r, const acb_t z, slong prec);
void acb_csc_pi(acb_t y, const acb_t x, slong prec);
void acb_tan_pi(acb_t s, const acb_t z, slong prec);
void acb_cot_pi(acb_t s, const acb_t z, slong prec);
void acb_csc_pi(acb_t res, const acb_t z, slong prec);

void acb_sinc(acb_t res, const acb_t z, slong prec);
void acb_sinc_pi(acb_t res, const acb_t z, slong prec);
void acb_sinc(acb_t s, const acb_t z, slong prec);
void acb_sinc_pi(acb_t s, const acb_t z, slong prec);

void acb_pow_arb(acb_t z, const acb_t x, const arb_t y, slong prec);
void acb_pow(acb_t r, const acb_t x, const acb_t y, slong prec);
void acb_pow(acb_t z, const acb_t x, const acb_t y, slong prec);

void acb_sqrt(acb_t y, const acb_t x, slong prec);
void acb_rsqrt(acb_t y, const acb_t x, slong prec);
void acb_sqrt(acb_t r, const acb_t z, slong prec);
void acb_rsqrt(acb_t r, const acb_t z, slong prec);
void acb_sqrts(acb_t y1, acb_t y2, const acb_t x, slong prec);

void acb_root_ui(acb_t y, const acb_t x, ulong k, slong prec);
void acb_root_ui(acb_t r, const acb_t z, ulong k, slong prec);

void acb_quadratic_roots_fmpz(acb_t r1, acb_t r2,
const fmpz_t a, const fmpz_t b, const fmpz_t c, slong prec);
Expand All @@ -776,7 +776,7 @@ void acb_rising_ui(acb_t z, const acb_t x, ulong n, slong prec);
void acb_rising(acb_t z, const acb_t x, const acb_t n, slong prec);
void acb_rising2_ui(acb_t u, acb_t v, const acb_t x, ulong n, slong prec);

void acb_rising_ui_get_mag(mag_t bound, const acb_t s, ulong n);
void acb_rising_ui_get_mag(mag_t bound, const acb_t x, ulong n);

void acb_gamma(acb_t y, const acb_t x, slong prec);
void acb_rgamma(acb_t y, const acb_t x, slong prec);
Expand All @@ -797,7 +797,7 @@ void acb_polylog_si(acb_t w, slong s, const acb_t z, slong prec);

void acb_agm1(acb_t m, const acb_t z, slong prec);
void acb_agm1_cpx(acb_ptr m, const acb_t z, slong len, slong prec);
void acb_agm(acb_t res, const acb_t a, const acb_t b, slong prec);
void acb_agm(acb_t m, const acb_t x, const acb_t y, slong prec);

#define ACB_LAMBERTW_LEFT 2
#define ACB_LAMBERTW_MIDDLE 4
Expand Down Expand Up @@ -1012,11 +1012,11 @@ void acb_fprintn(FILE * fp, const acb_t z, slong digits, ulong flags);
#endif

void acb_print(const acb_t x);
void acb_printd(const acb_t z, slong digits);
void acb_printd(const acb_t x, slong digits);
void acb_printn(const acb_t x, slong digits, ulong flags);

void _acb_vec_printd(acb_srcptr vec, slong len, slong ndigits);
void _acb_vec_printn(acb_srcptr vec, slong len, slong ndigits, ulong flags);
void _acb_vec_printd(acb_srcptr vec, slong len, slong digits);
void _acb_vec_printn(acb_srcptr vec, slong len, slong digits, ulong flags);

void acb_randtest(acb_t z, flint_rand_t state, slong prec, slong mag_bits);

Expand Down
24 changes: 12 additions & 12 deletions src/acb_dft.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ extern "C" {
#endif

void _acb_dft_naive(acb_ptr w, acb_srcptr v, slong dv, acb_srcptr z, slong dz, slong len, slong prec);
void acb_dft_naive(acb_ptr w, acb_srcptr v, slong len, slong prec);
void acb_dft_crt(acb_ptr w, acb_srcptr v, slong len, slong prec);
void acb_dft_cyc(acb_ptr w, acb_srcptr v, slong len, slong prec);
void acb_dft_naive(acb_ptr w, acb_srcptr v, slong n, slong prec);
void acb_dft_crt(acb_ptr w, acb_srcptr v, slong n, slong prec);
void acb_dft_cyc(acb_ptr w, acb_srcptr v, slong n, slong prec);
void acb_dft_rad2_inplace(acb_ptr v, int e, slong prec);
void acb_dft_rad2(acb_ptr w, acb_srcptr v, int e, slong prec);
void acb_dft_bluestein(acb_ptr w, acb_srcptr v, slong len, slong prec);
void acb_dft_bluestein(acb_ptr w, acb_srcptr v, slong n, slong prec);
void acb_dft_prod(acb_ptr w, acb_srcptr v, slong * cyc, slong num, slong prec);

void acb_dft_rad2_inplace_threaded(acb_ptr v, int e, slong prec);
Expand Down Expand Up @@ -176,12 +176,12 @@ void acb_dft_step(acb_ptr w, acb_srcptr v, acb_dft_step_ptr cyc, slong num, slon

void acb_dft_precomp(acb_ptr w, acb_srcptr v, const acb_dft_pre_t pre, slong prec);
void acb_dft_inverse_precomp(acb_ptr w, acb_srcptr v, const acb_dft_pre_t pre, slong prec);
void acb_dft_naive_precomp(acb_ptr w, acb_srcptr v, const acb_dft_naive_t pol, slong prec);
void acb_dft_cyc_precomp(acb_ptr w, acb_srcptr v, const acb_dft_cyc_t cyc, slong prec);
void acb_dft_naive_precomp(acb_ptr w, acb_srcptr v, const acb_dft_naive_t t, slong prec);
void acb_dft_cyc_precomp(acb_ptr w, acb_srcptr v, const acb_dft_cyc_t t, slong prec);

void acb_dft_rad2_precomp_inplace(acb_ptr v, const acb_dft_rad2_t rad2, slong prec);
void acb_dft_rad2_precomp(acb_ptr w, acb_srcptr v, const acb_dft_rad2_t rad2, slong prec);
void acb_dft_crt_precomp(acb_ptr w, acb_srcptr v, const acb_dft_crt_t crt, slong prec);
void acb_dft_rad2_precomp(acb_ptr w, acb_srcptr v, const acb_dft_rad2_t t, slong prec);
void acb_dft_crt_precomp(acb_ptr w, acb_srcptr v, const acb_dft_crt_t t, slong prec);
void acb_dft_prod_precomp(acb_ptr w, acb_srcptr v, const acb_dft_prod_t prod, slong prec);
void acb_dft_bluestein_precomp(acb_ptr w, acb_srcptr v, const acb_dft_bluestein_t t, slong prec);

Expand All @@ -195,8 +195,8 @@ void _acb_dft_precomp_init(acb_dft_pre_t pre, slong dv, acb_ptr z, slong dz, slo
void acb_dft_precomp_init(acb_dft_pre_t pre, slong len, slong prec);
void acb_dft_precomp_clear(acb_dft_pre_t pre);

void acb_dft(acb_ptr w, acb_srcptr v, slong len, slong prec);
void acb_dft_inverse(acb_ptr w, acb_srcptr v, slong len, slong prec);
void acb_dft(acb_ptr w, acb_srcptr v, slong n, slong prec);
void acb_dft_inverse(acb_ptr w, acb_srcptr v, slong n, slong prec);

acb_dft_step_ptr _acb_dft_steps_prod(slong * m, slong num, slong prec);

Expand Down Expand Up @@ -269,8 +269,8 @@ acb_dft_bluestein_clear(acb_dft_bluestein_t t)
}

void _acb_dft_crt_init(acb_dft_crt_t crt, slong dv, slong len, slong prec);
void acb_dft_crt_init(acb_dft_crt_t crt, slong len, slong prec);
void acb_dft_crt_clear(acb_dft_crt_t crt);
void acb_dft_crt_init(acb_dft_crt_t t, slong len, slong prec);
void acb_dft_crt_clear(acb_dft_crt_t t);

/* utils, could be moved elsewhere */

Expand Down
22 changes: 11 additions & 11 deletions src/acb_dirichlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ extern "C" {
void acb_dirichlet_powsum_term(acb_ptr res, arb_t log_prev, ulong * prev,
const acb_t s, ulong k, int integer, int critical_line, slong len, slong prec);

void acb_dirichlet_powsum_sieved(acb_ptr z, const acb_t s, ulong n, slong len, slong prec);
void acb_dirichlet_powsum_smooth(acb_ptr z, const acb_t s, ulong n, slong len, slong prec);
void acb_dirichlet_powsum_sieved(acb_ptr res, const acb_t s, ulong n, slong len, slong prec);
void acb_dirichlet_powsum_smooth(acb_ptr res, const acb_t s, ulong n, slong len, slong prec);

void acb_dirichlet_zeta_bound(mag_t res, const acb_t s);
void acb_dirichlet_zeta_deriv_bound(mag_t der1, mag_t der2, const acb_t s);
void acb_dirichlet_zeta_rs_f_coeffs(acb_ptr c, const arb_t p, slong N, slong prec);
void acb_dirichlet_zeta_rs_f_coeffs(acb_ptr f, const arb_t p, slong n, slong prec);
void acb_dirichlet_zeta_rs_d_coeffs(arb_ptr d, const arb_t sigma, slong k, slong prec);
void acb_dirichlet_zeta_rs_bound(mag_t err, const acb_t s, slong K);
void acb_dirichlet_zeta_rs_r(acb_t res, const acb_t s, slong K, slong prec);
Expand Down Expand Up @@ -93,9 +93,9 @@ acb_dirichlet_roots_struct;

typedef acb_dirichlet_roots_struct acb_dirichlet_roots_t[1];

void acb_dirichlet_roots_init(acb_dirichlet_roots_t t, ulong order, slong num, slong prec);
void acb_dirichlet_roots_clear(acb_dirichlet_roots_t t);
void acb_dirichlet_root(acb_t z, const acb_dirichlet_roots_t t, ulong n, slong prec);
void acb_dirichlet_roots_init(acb_dirichlet_roots_t roots, ulong n, slong num, slong prec);
void acb_dirichlet_roots_clear(acb_dirichlet_roots_t roots);
void acb_dirichlet_root(acb_t res, const acb_dirichlet_roots_t roots, ulong k, slong prec);

void acb_dirichlet_chi(acb_t res, const dirichlet_group_t G, const dirichlet_char_t chi, ulong n, slong prec);
void acb_dirichlet_chi_vec(acb_ptr v, const dirichlet_group_t G, const dirichlet_char_t chi, slong nv, slong prec);
Expand All @@ -106,7 +106,7 @@ void acb_dirichlet_qseries_arb_powers_naive(acb_t res, const arb_t x, int parity
void acb_dirichlet_qseries_arb_powers_smallorder(acb_t res, const arb_t x, int parity, const ulong *a, const acb_dirichlet_roots_t z, slong len, slong prec);

ulong acb_dirichlet_theta_length_d(ulong q, double x, slong prec);
ulong acb_dirichlet_theta_length(ulong q, const arb_t x, slong prec);
ulong acb_dirichlet_theta_length(ulong q, const arb_t t, slong prec);
void mag_tail_kexpk2_arb(mag_t res, const arb_t a, ulong n);

void _acb_dirichlet_theta_argument_at_arb(arb_t xt, ulong q, const arb_t t, slong prec);
Expand Down Expand Up @@ -161,10 +161,10 @@ void acb_dirichlet_hardy_z(acb_ptr res, const acb_t t,
const dirichlet_group_t G, const dirichlet_char_t chi,
slong len, slong prec);

void _acb_dirichlet_hardy_theta_series(acb_ptr res, acb_srcptr s, slong slen, const dirichlet_group_t G, const dirichlet_char_t chi, slong len, slong prec);
void acb_dirichlet_hardy_theta_series(acb_poly_t res, const acb_poly_t s, const dirichlet_group_t G, const dirichlet_char_t chi, slong len, slong prec);
void _acb_dirichlet_hardy_z_series(acb_ptr res, acb_srcptr s, slong slen, const dirichlet_group_t G, const dirichlet_char_t chi, slong len, slong prec);
void acb_dirichlet_hardy_z_series(acb_poly_t res, const acb_poly_t s, const dirichlet_group_t G, const dirichlet_char_t chi, slong len, slong prec);
void _acb_dirichlet_hardy_theta_series(acb_ptr res, acb_srcptr t, slong tlen, const dirichlet_group_t G, const dirichlet_char_t chi, slong len, slong prec);
void acb_dirichlet_hardy_theta_series(acb_poly_t res, const acb_poly_t t, const dirichlet_group_t G, const dirichlet_char_t chi, slong len, slong prec);
void _acb_dirichlet_hardy_z_series(acb_ptr res, acb_srcptr t, slong tlen, const dirichlet_group_t G, const dirichlet_char_t chi, slong len, slong prec);
void acb_dirichlet_hardy_z_series(acb_poly_t res, const acb_poly_t t, const dirichlet_group_t G, const dirichlet_char_t chi, slong len, slong prec);

void acb_dirichlet_gram_point(arb_t res, const fmpz_t n, const dirichlet_group_t G, const dirichlet_char_t chi, slong prec);
ulong acb_dirichlet_turing_method_bound(const fmpz_t p);
Expand Down
20 changes: 10 additions & 10 deletions src/acb_elliptic.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
extern "C" {
#endif

void acb_elliptic_k(acb_t k, const acb_t m, slong prec);
void acb_elliptic_k(acb_t res, const acb_t m, slong prec);

void acb_elliptic_k_jet(acb_ptr w, const acb_t m, slong len, slong prec);
void acb_elliptic_k_jet(acb_ptr res, const acb_t m, slong len, slong prec);

void _acb_elliptic_k_series(acb_ptr res, acb_srcptr m, slong zlen, slong len, slong prec);
void _acb_elliptic_k_series(acb_ptr res, acb_srcptr m, slong mlen, slong len, slong prec);

void acb_elliptic_k_series(acb_poly_t res, const acb_poly_t m, slong len, slong prec);

Expand All @@ -38,19 +38,19 @@ void acb_elliptic_rg(acb_t res, const acb_t x, const acb_t y, const acb_t z, int

void acb_elliptic_rc1(acb_t res, const acb_t x, slong prec);

void acb_elliptic_f(acb_t res, const acb_t phi, const acb_t m, int times_pi, slong prec);
void acb_elliptic_f(acb_t res, const acb_t phi, const acb_t m, int pi, slong prec);

void acb_elliptic_e_inc(acb_t res, const acb_t phi, const acb_t m, int times_pi, slong prec);
void acb_elliptic_e_inc(acb_t res, const acb_t phi, const acb_t m, int pi, slong prec);

void acb_elliptic_pi(acb_t r, const acb_t n, const acb_t m, slong prec);
void acb_elliptic_pi(acb_t res, const acb_t n, const acb_t m, slong prec);

void acb_elliptic_pi_inc(acb_t res, const acb_t n, const acb_t phi, const acb_t m, int times_pi, slong prec);
void acb_elliptic_pi_inc(acb_t res, const acb_t n, const acb_t phi, const acb_t m, int pi, slong prec);

void acb_elliptic_p(acb_t r, const acb_t z, const acb_t tau, slong prec);
void acb_elliptic_p(acb_t res, const acb_t z, const acb_t tau, slong prec);

void acb_elliptic_p_prime(acb_t r, const acb_t z, const acb_t tau, slong prec);
void acb_elliptic_p_prime(acb_t res, const acb_t z, const acb_t tau, slong prec);

void acb_elliptic_p_jet(acb_ptr r, const acb_t z, const acb_t tau, slong len, slong prec);
void acb_elliptic_p_jet(acb_ptr res, const acb_t z, const acb_t tau, slong len, slong prec);

void _acb_elliptic_p_series(acb_ptr res, acb_srcptr z, slong zlen, const acb_t tau, slong len, slong prec);

Expand Down
Loading