Changeset 274 in Sophya for trunk/SophyaProg/Tests/tblitz.cc
- Timestamp:
- Apr 27, 1999, 5:41:21 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/Tests/tblitz.cc
r224 r274 4 4 #include "timing.h" 5 5 #include "cimage.h" 6 #include "outilsinit.h" 7 // Test des NDataBlock 8 #include "ndatablock.h" 6 9 7 10 #include "blitz/array.h" … … 54 57 } 55 58 59 cout << "\n ==== Test avec NDataBlock<float> " << endl; 60 NDataBlock<r_4> b1(sx*sy), b2(sx*sy), b3(sx*sy); 61 for(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 } 56 71 57 72 exit(0);
Note:
See TracChangeset
for help on using the changeset viewer.