#include #include #include "nbrandom.h" #include "timing.h" #include "cimage.h" #include "outilsinit.h" // Test des NDataBlock #include "ndatablock.h" #include "blitz/array.h" using namespace blitz ; main(int narg, char *arg[]) { PeidaInit(); InitTim(); char strg[128]; int N1,N2, k, kk, i, j; N1 = 1; N2 = 10; if (narg > 1) N1 = atoi(arg[1]); if (narg > 2) N2 = atoi(arg[2]); cout << N1 << " Tests avec " << N2 << " multiplications" << endl; int sx = 300; int sy = 200; ImageR4 img(sx, sy), i2(sx, sy), ir(sx, sy); for(kk=0; kk a1(sy, sx), a2(sy, sx), a3(sy, sx); firstIndex ii; secondIndex jj; for(kk=0; kk " << endl; NDataBlock b1(sx*sy), b2(sx*sy), b3(sx*sy); for(kk=0; kk (" << sx*sy << ") , " << N2 << " mult. " << endl; for(k=0; k T[%d] ", kk); PrtTim(strg); } exit(0); }