Subversion Repositories gelsvn

Rev

Rev 39 | Rev 58 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 39 Rev 47
Line 156... Line 156...
156
		{ 
156
		{ 
157
			Allocate();
157
			Allocate();
158
			memcpy(Data,Rhs.Data,nElems*sizeof(T));
158
			memcpy(Data,Rhs.Data,nElems*sizeof(T));
159
		}
159
		}
160
 
160
 
161
		template <class VVT, class HVT, class MT, int ROWS>
161
		template <class VVT, class HVT, class MT, unsigned int ROWS>
162
		CMatrixType<T>(const CGLA::ArithMatFloat<VVT,HVT,MT,ROWS>& Rhs): 
162
		CMatrixType<T>(const CGLA::ArithMatFloat<VVT,HVT,MT,ROWS>& Rhs): 
163
			nRows(Rhs.get_v_dim()),nCols(Rhs.get_h_dim()),
163
			nRows(Rhs.get_v_dim()),nCols(Rhs.get_h_dim()),
164
			nElems(nRows*nCols) 
164
			nElems(nRows*nCols) 
165
		{ 
165
		{ 
166
			Allocate();
166
			Allocate();
Line 189... Line 189...
189
			Resize(Rhs.nRows,Rhs.nCols); 
189
			Resize(Rhs.nRows,Rhs.nCols); 
190
			memcpy(Data,Rhs.Data,nElems*sizeof(T));
190
			memcpy(Data,Rhs.Data,nElems*sizeof(T));
191
			return *this;
191
			return *this;
192
		}
192
		}
193
 
193
 
194
		template <class VVT, class HVT, class MT, int ROWS>
194
		template <class VVT, class HVT, class MT, unsigned int ROWS>
195
		CMatrixType<T>& operator=(const CGLA::ArithMatFloat<VVT,HVT,MT,ROWS>& Rhs)
195
		CMatrixType<T>& operator=(const CGLA::ArithMatFloat<VVT,HVT,MT,ROWS>& Rhs)
196
		{ 
196
		{ 
197
			Resize(Rhs.get_v_dim(),Rhs.get_h_dim()); 
197
			Resize(Rhs.get_v_dim(),Rhs.get_h_dim()); 
198
			for(int i=0;i<nElems;++i)
198
			for(int i=0;i<nElems;++i)
199
				Data[i] = Rhs.get()[i];
199
				Data[i] = Rhs.get()[i];