Changeset 4655 for trunk/MagicSoft/Mars/mhbase
- Timestamp:
- 08/17/04 15:44:38 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhbase/MHMatrix.cc
r4654 r4655 591 591 const TArrayI MHMatrix::GetIndexOfSortedColumn(Int_t ncol, Bool_t desc) const 592 592 { 593 #if ROOT_VERSION_CODE < ROOT_VERSION(4,00,8) 594 TMatrixColumn col(fM, ncol); 595 #else 593 596 TMatrixFColumn_const col(fM, ncol); 597 #endif 594 598 595 599 const Int_t n = fM.GetNrows(); … … 614 618 const Int_t n = fM.GetNrows(); 615 619 620 #if ROOT_VERSION_CODE < ROOT_VERSION(4,00,8) 621 TVector vold(fM.GetNcols()); 622 #endif 623 616 624 TMatrix m(n, fM.GetNcols()); 617 TVector vold(fM.GetNcols());618 625 for (int i=0; i<n; i++) 619 TMatrixFRow(m, i) /*= vold*/ = TMatrixFRow_const(fM, idx[i]); 620 626 #if ROOT_VERSION_CODE < ROOT_VERSION(4,00,8) 627 TMatrixRow(m, i) = vold = TMatrixRow(fM, idx[i]); 628 #else 629 TMatrixFRow(m, i) = TMatrixFRow_const(fM, idx[i]); 630 #endif 621 631 fM = m; 622 632 }
Note:
See TracChangeset
for help on using the changeset viewer.