/******************************************************************************** * * Livermoore Loop no 9 * * Integrate Predictors * Parallel Algorithm * * This runs a fair bit slower than the C version, but it's so elegant * that I can't resist. This needs a revisit, perhaps after the LIR * bug is repaired. * ********************************************************************************/ use StdIO: all; use Array: all; use String:{tochar}; /* Vector length */ #define N 1001 inline double[.] vecmatmul( double[.] wts, double[.,.] PX) { colsx = shape(wts)[0]; colsy = shape(PX)[1]; z = genarray([colsy], 0.0d); for (colx=0; colx