#!/usr/bin/env /home/paco/hacking/cint/runme -lgsl -lgslcblas -lm #include #include #include #include #include typedef struct structslice { int d; int *s; } ss; typedef struct structarray { int d; int *s; double *b; } sa; ss csn(int dim, ...) { ss p; p.d =dim; p.s= (int *) malloc(2*dim*sizeof(int)); va_list ap; va_start(ap,dim); int lcv; for (lcv=0;lcv<(2*dim);lcv=lcv+2){ p.s[lcv]= va_arg(ap,int); p.s[lcv+1]= va_arg(ap,int); } va_end(ap); return p; } sa can(int dim, ...) { sa p; p.d =dim; p.s= (int *) malloc(dim*sizeof(int)); va_list ap; va_start(ap,dim); int lcv; int totnum=1; for (lcv=0;lcv0){ printf("["); for (p[lev-1]=0;p[lev-1]