11 //typedef uint32_t UInt;
12 //typedef int32_t Int;
14 /*******************************
15 * Matrix and arrays indexation
16 *******************************/
18 // Matrix Index ; TODO? ncol unused
19 #define mi(i,j,nrow,ncol)\
22 // Array Index ; TODO? d3 unused
23 #define ai(i,j,k,d1,d2,d3)\
26 // Array4 Index ; TODO? ...
27 #define ai4(i,j,k,m,d1,d2,d3,d4)\
28 m*d1*d2*d3 + k*d1*d2 + j*d1 + i
30 /*************************
31 * Array copy & "zeroing"
32 ************************/
34 // Fill an array with zeros
35 #define zeroArray(array, size)\
37 for (int u=0; u<size; u++)\
42 #define copyArray(array, copy, size)\
44 for (int u=0; u<size; u++)\