Changeset 1156 in Sophya for trunk/SophyaLib/TArray/tvector.cc
- Timestamp:
- Aug 29, 2000, 6:10:32 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/tvector.cc
r1103 r1156 1 // $Id: tvector.cc,v 1.1 0 2000-07-27 00:00:10ansari Exp $1 // $Id: tvector.cc,v 1.11 2000-08-29 16:10:31 ansari Exp $ 2 2 // C.Magneville 04/99 3 3 #include "machdefs.h" … … 31 31 */ 32 32 template <class T> 33 TVector<T>::TVector( uint_4n, short lcv, short mm)33 TVector<T>::TVector(sa_size_t n, short lcv, short mm) 34 34 // Constructeur 35 35 : TMatrix<T>(1,1,mm) … … 121 121 */ 122 122 template <class T> 123 void TVector<T>::ReSize( uint_4n, short lcv)123 void TVector<T>::ReSize(sa_size_t n, short lcv) 124 124 { 125 125 if( n == 0 ) 126 126 throw(SzMismatchError("TVector::ReSize() n = 0 ")); 127 uint_4r,c;127 sa_size_t r,c; 128 128 if (lcv == SameVectorType) lcv = GetVectorType(); 129 129 else if ( (lcv != ColumnVector) && (lcv != RowVector) ) lcv = GetDefaultVectorType(); … … 143 143 */ 144 144 template <class T> 145 void TVector<T>::Realloc( uint_4n, short lcv, bool force)145 void TVector<T>::Realloc(sa_size_t n, short lcv, bool force) 146 146 { 147 147 if( n == 0 ) 148 148 throw(SzMismatchError("TVector::Realloc() n = 0 ")); 149 uint_4r,c;149 sa_size_t r,c; 150 150 if (lcv == SameVectorType) lcv = GetVectorType(); 151 151 else if ( (lcv != ColumnVector) && (lcv != RowVector) ) lcv = GetDefaultVectorType(); … … 175 175 { 176 176 T ret = 0; 177 for( uint_8k=0; k<Size(); k++) ret += (*this)(k)*(*this)(k);177 for(sa_size_t k=0; k<Size(); k++) ret += (*this)(k)*(*this)(k); 178 178 return ret; 179 179 }
Note:
See TracChangeset
for help on using the changeset viewer.