Changeset 3332 in Sophya for trunk/SophyaLib/TArray/tarray.h
- Timestamp:
- Oct 3, 2007, 3:04:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/tarray.h
r3173 r3332 193 193 // Calcul du produit scalaire ( Somme_i (*this)(i)*a(i) ) 194 194 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); }198 195 199 196 // Somme et produit des elements … … 201 198 virtual T Product() const ; 202 199 // 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) 205 204 virtual void MinMax(T& min, T& max) const ; 206 205
Note:
See TracChangeset
for help on using the changeset viewer.