Changeset 894 in Sophya for trunk/SophyaLib/TArray/tvector.cc
- Timestamp:
- Apr 12, 2000, 7:42:33 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/tvector.cc
r813 r894 1 // $Id: tvector.cc,v 1. 3 2000-04-05 15:44:17ansari Exp $1 // $Id: tvector.cc,v 1.4 2000-04-12 17:42:30 ansari Exp $ 2 2 // C.Magneville 04/99 3 3 #include "machdefs.h" … … 9 9 //**** Createur, Destructeur 10 10 11 //! Default constructor 11 12 template <class T> 12 13 TVector<T>::TVector() … … 15 16 } 16 17 18 //! construct a vector 19 /*! 20 \param n : number of elements 21 \param lcv : line or column vector ? 22 \param mm : memory mapping type 23 \sa SelectVectorType 24 */ 17 25 template <class T> 18 26 TVector<T>::TVector(uint_4 n, short lcv, short mm) … … 24 32 } 25 33 26 34 //! Constructor by copy (share if \b a is temporary) 27 35 template <class T> 28 36 TVector<T>::TVector(const TVector<T>& a) … … 32 40 } 33 41 42 //! Constructor by copy 43 /*! 44 \param share : if true, share data. If false copy data 45 */ 34 46 template <class T> 35 47 TVector<T>::TVector(const TVector<T>& a, bool share) … … 39 51 } 40 52 53 //! Constructor from a TArray 41 54 template <class T> 42 55 TVector<T>::TVector(const TArray<T>& a) … … 48 61 49 62 63 //! Constructor of a vector from a TArray \b a 64 /*! 65 \param a : TArray to be copied or shared 66 \param share : if true, share data. If false copy data 67 \param mm : define the memory mapping type 68 \param lcv : line or column vector ? 69 \sa SelectVectorType 70 */ 50 71 template <class T> 51 72 TVector<T>::TVector(const TArray<T>& a, bool share, short mm, short lcv ) … … 61 82 } 62 83 84 //! Destructor 63 85 template <class T> 64 86 TVector<T>::~TVector() 65 // Destructeur66 87 { 67 68 88 } 69 89 90 //! Resize the vector 91 /*! 92 \param n : number of elements 93 \param lcv : line or column vector ? 94 \sa SelectVectorType 95 */ 70 96 template <class T> 71 97 void TVector<T>::ReSize(uint_4 n, short lcv) … … 82 108 } 83 109 110 //! Re-allocate space for the vector 111 /*! 112 \param n : number of elements 113 \param lcv : line or column vector ? 114 \param force : if true re-allocation is forced, if not it occurs 115 only if the required space is greater than the old one. 116 \sa ReSize SelectVectorType 117 */ 84 118 template <class T> 85 119 void TVector<T>::Realloc(uint_4 n, short lcv, bool force) … … 97 131 98 132 // $CHECK$ Reza 03/2000 Doit-on declarer cette methode const ? 133 //! Return a subvector define by \b Range \b relt 99 134 template <class T> 100 135 TVector<T> TVector<T>::SubVector(Range relt) const … … 109 144 } 110 145 146 //! Return the norm \f$ \sum{V(i)^2} \f$ 111 147 template <class T> 112 148 T TVector<T>::Norm2() const … … 117 153 } 118 154 155 //! Return info on number of rows, column and type \b T 119 156 template <class T> 120 157 string TVector<T>::InfoString() const
Note:
See TracChangeset
for help on using the changeset viewer.