Changeset 1830 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 03/18/03 19:03:09 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHMatrix.cc
r1829 r1830 216 216 fM.ResizeTo(fM.GetNrows()*2, fData->GetNumEntries()); 217 217 218 for (int x=0; x<m.GetNcols(); x++) 219 { 220 TVector vold(fM.GetNcols()); 221 TMatrixColumn(fM, x) = vold = TMatrixColumn(m, x); 222 } 218 TVector vold(fM.GetNcols()); 219 for (int x=0; x<m.GetNrows(); x++) 220 TMatrixRow(fM, x) = vold = TMatrixRow(m, x); 223 221 } 224 222 … … 254 252 fM.ResizeTo(fNumRow, fData->GetNumEntries()); 255 253 256 for (int x=0; x<fM.GetNcols(); x++) 257 { 258 TVector vold(fM.GetNcols()); 259 TMatrixColumn(fM, x) = vold = TMatrixColumn(m, x); 260 } 254 TVector vold(fM.GetNcols()); 255 for (int x=0; x<fM.GetNrows(); x++) 256 TMatrixRow(fM, x) = vold = TMatrixRow(m, x); 261 257 262 258 return kTRUE; … … 597 593 for (int i=0; i<n; i++) 598 594 { 599 TVector vold( n);595 TVector vold(fM.GetNcols()); 600 596 TMatrixRow(m, i) = vold = TMatrixRow(fM, idx[i]); 601 597 }
Note:
See TracChangeset
for help on using the changeset viewer.