Fix saving lists of arrays with recent versions of numpy
[qpms.git] / oldtests / Amaxcumsum.c
blob63e54675449f716d4fcdb5cc356b96e482fb1f09
1 #include "../qpms/gaunt.h"
2 #include <stdio.h>
3 #include <stdlib.h>
5 //const int lMax = 30;
7 int main(int argc, char **argv)
9 int lMax;
10 if (argc < 2)
11 lMax = 30;
12 else lMax = atoi(argv[1]);
14 printf("// assuming lMax == %d:\n", lMax);
15 size_t Amaxcumsum = 0;
16 printf("0x%zx,\n", Amaxcumsum);
17 for (int n = 0; n <= lMax; n++)
18 for (int m = -n; m <= n; m++)
19 for (int nu = 0; nu <= lMax; nu++)
20 for (int mu = -nu; mu <= nu; mu++) {
21 Amaxcumsum += gaunt_q_max(-m, n, mu, nu) + 1;
22 printf("0x%zx,\n", Amaxcumsum);
24 return 0;