Changeset 2557 in Sophya for trunk/SophyaProg/Tests/tsttminv.cc


Ignore:
Timestamp:
Jul 21, 2004, 6:23:00 PM (21 years ago)
Author:
cmv
Message:

cosmetique... cmv 21/07/04

File:
1 edited

Legend:

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

    r2555 r2557  
    2121
    2222// --- Choix de ce que doit faire Lapack
    23 #ifdef USE_LAPACK
    2423#define ALSO_LAPACK_INV
    2524#define ALSO_LAPACK_INV_SYM
     
    2726#define ALSO_LAPACK_EV
    2827#define ALSO_LAPACK_EV_SYM
    29 #endif
    3028
    3129//////////////////////////////////////////////////
     
    161159        <<"-- Only GausPiv --"<<endl
    162160        <<"-t 0/1/2 : data scaling 0=no, 1=global (def), 2=row-by-row"<<endl
    163         <<"-d : also compute determinant"<<endl;
     161        <<"-d : also compute determinant (ne pas utiliser si N est grand)"<<endl;
    164162    return(-1);
    165163  }
     
    257255
    258256
    259 #ifdef ALSO_LAPACK_INV
    260 ////////////////////////////////////
    261 ///////// Test avec Lapack /////////
    262 ////////////////////////////////////
     257//////////////////////////////////////////////
     258///////// Test Inversion avec Lapack /////////
     259//////////////////////////////////////////////
     260#if defined(USE_LAPACK) && defined(ALSO_LAPACK_INV)
    263261{
    264262cout<<"\n=========================================="<<endl;
     
    282280
    283281
    284 #ifdef ALSO_LAPACK_INV_SYM
    285 ////////////////////////////////////////
    286 ///////// Test avec Lapack sym /////////
    287 ////////////////////////////////////////
     282//////////////////////////////////////////////////
     283///////// Test Inversion avec Lapack sym /////////
     284//////////////////////////////////////////////////
     285#if defined(USE_LAPACK) && defined(ALSO_LAPACK_INV_SYM)
    288286{
    289287cout<<"\n=========================================="<<endl;
     
    307305
    308306
    309 #ifdef ALSO_LAPACK_INV_LSS
    310307////////////////////////////////////////////////
    311308///////// Test avec Lapack LeastSquare /////////
    312309////////////////////////////////////////////////
     310#if defined(USE_LAPACK) && defined(ALSO_LAPACK_INV_LSS)
    313311{
    314312cout<<"\n=========================================="<<endl;
     
    332330
    333331
    334 #ifdef ALSO_LAPACK_EV
    335332////////////////////////////////////////////////
    336333///////// Test avec Lapack pour EV /////////
    337334////////////////////////////////////////////////
     335#if defined(USE_LAPACK) && defined(ALSO_LAPACK_EV)
    338336{
    339337cout<<"\n=========================================="<<endl;
     
    347345PrtTim("--- End of LapackEigen decompositon ---");
    348346if(nprline>0) {cout<<Eval; cout<<endl; cout<<Evec; cout<<endl;}
    349 #ifndef COMPLEX
    350347//-- Find the complex conjugate pairs
     348#if !defined(COMPLEX)
    351349TVector< uint_2 > Evalconj(N); Evalconj = 0;
    352350int_4 nconj=0;
     
    369367  for(int i=0;i<N;i++) {
    370368    complex<TYPER> Evec_il;
    371     #ifdef COMPLEX
     369    #if defined(COMPLEX)
    372370    Evec_il = Evec(i,l);
    373371    #else
     
    378376    for(int j=0;j<N;j++) {
    379377      complex<TYPER> Evec_jl;
    380       #ifdef COMPLEX
     378      #if defined(COMPLEX)
    381379      Evec_jl = Evec(j,l);
    382380      #else
     
    398396
    399397
    400 #ifdef ALSO_LAPACK_EV_SYM
    401398////////////////////////////////////////////////
    402399///////// Test avec Lapack sym pour EV /////////
    403400////////////////////////////////////////////////
     401#if defined(USE_LAPACK) && defined(ALSO_LAPACK_EV_SYM)
    404402{
    405403cout<<"\n=========================================="<<endl;
     
    428426
    429427
    430 #ifdef USE_GAUSPIV
    431 ////////////////////////////////////
    432 ///////// Test avec GausPiv /////////
    433 ////////////////////////////////////
     428///////////////////////////////////////////////
     429///////// Test Inversion avec GausPiv /////////
     430///////////////////////////////////////////////
     431#if defined(USE_GAUSPIV)
    434432{
    435433cout<<"\n==========================================\n"
Note: See TracChangeset for help on using the changeset viewer.