Changeset 274 in Sophya


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

Ameliorations Tests Reza 27/04/99

Location:
trunk/SophyaProg/Tests
Files:
3 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);
  • trunk/SophyaProg/Tests/timg.cc

    r271 r274  
    7777cout << " DataBlock<r_8> i*5 : (db)" << endl;
    7878cout << db << endl;
    79 NDataBlock<r_8> db2(20,false);
     79NDataBlock<r_8> db2(db,false);
    8080cout << " DataBlock<r_8> (db2=db) - db" << endl;
    8181cout << db2-db << endl;
  • trunk/SophyaProg/Tests/tnt.cc

    r224 r274  
    44#include <iostream.h>
    55
     6#include "outilsinit.h"
    67#include "ntuple.h"
    78
Note: See TracChangeset for help on using the changeset viewer.