Changeset 7130 for trunk/MagicSoft/Mars/mhbase/MHMatrix.cc
- Timestamp:
- 06/03/05 18:02:36 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhbase/MHMatrix.cc
r6890 r7130 143 143 Int_t MHMatrix::AddColumn(const char *rule) 144 144 { 145 const Int_t idx = fData ? fData->FindRule(rule) : -1; 146 if (idx>=0) 147 return idx; 148 145 149 if (IsValid(fM)) 146 150 { … … 160 164 SetBit(kIsOwner); 161 165 } 162 163 const Int_t idx = fData->FindRule(rule);164 if (idx>=0)165 return idx;166 166 167 167 fData->AddEntry(rule); … … 1262 1262 return kTRUE; 1263 1263 } 1264 1265 // -------------------------------------------------------------------------- 1266 // 1267 // Returns the row pointed to by fNumRow into TVector v 1268 // 1269 void MHMatrix::GetRow(TVector &v) const 1270 { 1271 Int_t ncols = fM.GetNcols(); 1272 1273 v.ResizeTo(ncols); 1274 1275 while (ncols--) 1276 v(ncols) = fM(fRow, ncols); 1277 }
Note:
See TracChangeset
for help on using the changeset viewer.