Changeset 2575 in Sophya for trunk/SophyaLib/TArray/tvector.h
- Timestamp:
- Jul 29, 2004, 2:31:16 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/tvector.h
r2564 r2575 14 14 // Creation / destruction 15 15 TVector(); 16 TVector(sa_size_t n, short lcv=AutoVectorType, short mm=AutoMemoryMapping );16 TVector(sa_size_t n, short lcv=AutoVectorType, short mm=AutoMemoryMapping, bool fzero=true); 17 17 TVector(const TVector<T>& v); 18 18 TVector(const TVector<T>& v, bool share); … … 39 39 40 40 // Gestion taille/Remplissage 41 void ReSize(sa_size_t n, short lcv=SameVectorType 41 void ReSize(sa_size_t n, short lcv=SameVectorType, bool fzero=true); 42 42 //! a synonym (alias) for method ReSize(sa_size_t, short) 43 inline void SetSize(sa_size_t n, short lcv=SameVectorType 44 { ReSize(n, lcv ); }43 inline void SetSize(sa_size_t n, short lcv=SameVectorType, bool fzero=true) 44 { ReSize(n, lcv, fzero); } 45 45 void Realloc(sa_size_t n, short lcv=SameVectorType, bool force=false); 46 46 … … 77 77 // operations avec matrices 78 78 //! += : add a vector in place 79 inline TVector<T>& operator += (const TVector<T>& a) { AddElt(a ); return(*this); }79 inline TVector<T>& operator += (const TVector<T>& a) { AddElt(a,*this); return(*this); } 80 80 //! += : substract a vector in place 81 inline TVector<T>& operator -= (const TVector<T>& a) { SubElt(a); return(*this); } 82 83 // Norme(^2) 84 T Norm2() const ; 81 inline TVector<T>& operator -= (const TVector<T>& a) { SubElt(a,*this); return(*this); } 85 82 86 83 virtual string InfoString() const;
Note:
See TracChangeset
for help on using the changeset viewer.