Subversion Repositories gelsvn

Rev

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

Rev 47 Rev 58
Line 588... Line 588...
588
 
588
 
589
		///Sets the cRow'th row of the matrix equal to Row. Equvivalent to this(cRow,:)=Row in Matlab.
589
		///Sets the cRow'th row of the matrix equal to Row. Equvivalent to this(cRow,:)=Row in Matlab.
590
		void SetRow(CVectorType<T>& Row,const int cRow)
590
		void SetRow(CVectorType<T>& Row,const int cRow)
591
		{
591
		{
592
			assert(Row.Length()==nCols);
592
			assert(Row.Length()==nCols);
593
			memcpy(Row.Data,Ilife[cRow],nCols*sizeof(T));
593
			memcpy(Ilife[cRow],Row.Data,nCols*sizeof(T));
594
		}
594
		}
595
 
595
 
596
		///Copies row 'from' of this matrix to row 'to' of matrix A. Equvivalent to A(to,:)=this(from,:) in Matlab.
596
		///Copies row 'from' of this matrix to row 'to' of matrix A. Equvivalent to A(to,:)=this(from,:) in Matlab.
597
		void RowTransfere(CMatrixType<T>& A, const int from,const int to) const
597
		void RowTransfere(CMatrixType<T>& A, const int from,const int to) const
598
		{
598
		{