2016-09-06 15:32:23 +02:00
|
|
|
/*
|
2016-03-22 11:29:21 +01:00
|
|
|
Copyright (C) 2016 Pascal Molin
|
2016-02-24 11:06:49 +01:00
|
|
|
|
2016-09-06 15:32:23 +02:00
|
|
|
This file is part of Arb.
|
|
|
|
|
|
|
|
Arb is free software: you can redistribute it and/or modify it under
|
|
|
|
the terms of the GNU Lesser General Public License (LGPL) as published
|
|
|
|
by the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
(at your option) any later version. See <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2016-02-24 11:06:49 +01:00
|
|
|
|
|
|
|
#include "acb_dirichlet.h"
|
|
|
|
|
|
|
|
void
|
2016-04-05 12:18:39 +02:00
|
|
|
acb_dirichlet_ui_vec_set_null(ulong *v, const acb_dirichlet_group_t G, slong nv)
|
2016-02-24 11:06:49 +01:00
|
|
|
{
|
2016-03-29 14:37:21 +01:00
|
|
|
slong k, l;
|
2016-03-29 14:04:08 +01:00
|
|
|
if (G->q_even > 1)
|
|
|
|
{
|
|
|
|
for (k = 2; k < nv; k += 2)
|
|
|
|
v[k] = -1;
|
|
|
|
}
|
|
|
|
|
2016-07-14 15:51:25 +02:00
|
|
|
for (l = G->neven; l < G->num; l++)
|
2016-03-29 14:04:08 +01:00
|
|
|
{
|
2016-07-06 18:39:29 +02:00
|
|
|
ulong p = G->P[l].p;
|
2016-03-29 14:04:08 +01:00
|
|
|
|
|
|
|
for (k = p; k < nv; k += p)
|
|
|
|
v[k] = ACB_DIRICHLET_CHI_NULL;
|
|
|
|
}
|
2016-02-24 11:06:49 +01:00
|
|
|
}
|