Changeset 2940 in Sophya for trunk/SophyaProg/Tests/spar.cc


Ignore:
Timestamp:
Apr 24, 2006, 5:33:37 PM (19 years ago)
Author:
ansari
Message:

Ajout test 6.b (ope. && MultElt) ds spar.cc (speed TArray) - Reza 24/04/2006

File:
1 edited

Legend:

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

    r2615 r2940  
    147147#endif
    148148  nop = nloop*3*nr*nc*5/1000;
    149   cout << "(6) Op  (A*x+y*B).MulElt(B-A, ->D) (KFLOP) = " << nop << endl;
    150   noptot += nop;
    151   PrtTim(" Apres (6) ");
     149  cout << "(6.a) Op  (A*x+y*B).MulElt(B-A, ->D) (KFLOP) = " << nop << endl;
     150  noptot += nop;
     151  PrtTim(" Apres (6.a) ");
     152
     153  for(int k=0; k<nloop; k++) {
     154    Matrix Dc = (Ac+4.+6.5*Bc) && (Bc-Ac);
     155    Matrix Dcf = (Ac+4.+6.5*Bf) && (Bc-Af);
     156    Matrix Df = (Af+4.+6.5*Bf) && (Bf-Af);
     157  }
     158  nop = nloop*3*nr*nc*5/1000;
     159  cout << "(6.b) Op  D = (A*x+y*B) && (B-A) (KFLOP) = " << nop << endl;
     160  noptot += nop;
     161  PrtTim(" Apres (6.b) ");
    152162  cout << res;
    153163
    154164  // Les operations sur sous-tableaux sont beaucoup trop couteux V <= 1.7
    155165  if (ope > 0) {
    156     cout << "\n (7) Operations de AA.Row() *= ... " << endl;
     166    cout << "\n(7) Op  AA.Row() *= ... [AA.Row()*x+BB.Row()*y  ope=2] " << endl;
    157167    Ac = A;  Bc = B;
    158168    Af = A;  Bf = B;
Note: See TracChangeset for help on using the changeset viewer.