Changeset 274 in Sophya for trunk/SophyaProg/Tests/tblitz.cc


Ignore:
Timestamp:
Apr 27, 1999, 5:41:21 PM (26 years ago)
Author:
ansari
Message:

Ameliorations Tests Reza 27/04/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/Tests/tblitz.cc

    r224 r274  
    44#include "timing.h"
    55#include "cimage.h"
     6#include "outilsinit.h"
     7// Test des NDataBlock
     8#include "ndatablock.h"
    69
    710#include "blitz/array.h"
     
    5457}
    5558
     59 cout << "\n ====  Test avec NDataBlock<float> " << endl;
     60NDataBlock<r_4> b1(sx*sy), b2(sx*sy), b3(sx*sy);
     61for(kk=0; kk<N1; kk++) {
     62  cout << kk << " NDataBlock<float> (" << sx*sy <<  ") , " << N2 << " mult. " << endl;
     63  for(k=0; k<sx*sy; k++) {
     64    b1(k) = frand01()*10.*k;
     65    b2(k) = frand01()*10.*k;
     66    }
     67  for(k=0; k<N2; k++) b3 = b1*b2;
     68  sprintf(strg, "NDataBlock<float> T[%d] ", kk);
     69  PrtTim(strg);
     70}
    5671
    5772exit(0);
Note: See TracChangeset for help on using the changeset viewer.