Changeset 3332 in Sophya for trunk/SophyaLib/TArray/tarray.h


Ignore:
Timestamp:
Oct 3, 2007, 3:04:34 PM (18 years ago)
Author:
ansari
Message:

1- Methode TArray::SumX2() renommee en ::SumSq()
2- Methode TArray::Norm2() appelle maintenant SumSq() - sauf pour les
tableaux complexes, ou on calcule Sum[el x conj(el)]=Sum[module2]
3- Nettoyage fichier sopemtx.cc (utilisation sa_size_t pour supprimer
les warnings g++

Reza , 02/10/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/tarray.h

    r3173 r3332  
    193193// Calcul du produit scalaire ( Somme_i (*this)(i)*a(i) )
    194194  virtual T ScalarProduct(const TArray<T>& a) const ;
    195 // Norme(^2)
    196   //! Returns the squarred of the array norm, defined as  Sum_k (*this)(k)*(*this)(k)
    197   inline T Norm2() const { return ScalarProduct(*this); }
    198195
    199196// Somme et produit des elements
     
    201198  virtual T Product() const ;
    202199// Somme du carre des elements
    203   virtual T SumX2() const;
    204 // Valeur min et max des elements
     200  virtual T SumSq() const;
     201//  Norme^2 , identique a SumSq pour tableaux reels/integer , sum[el * conj(el)] pour complexe
     202  virtual T Norm2() const;
     203// Valeur min et max des elements (sauf tableaux complexes -> exception)
    205204  virtual void MinMax(T& min, T& max) const ;
    206205
Note: See TracChangeset for help on using the changeset viewer.