Ignore:
Timestamp:
06/03/05 18:02:36 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhbase/MHMatrix.cc

    r6890 r7130  
    143143Int_t MHMatrix::AddColumn(const char *rule)
    144144{
     145    const Int_t idx = fData ? fData->FindRule(rule) : -1;
     146    if (idx>=0)
     147        return idx;
     148
    145149    if (IsValid(fM))
    146150    {
     
    160164        SetBit(kIsOwner);
    161165    }
    162 
    163     const Int_t idx = fData->FindRule(rule);
    164     if (idx>=0)
    165         return idx;
    166166
    167167    fData->AddEntry(rule);
     
    12621262    return kTRUE;
    12631263}
     1264
     1265// --------------------------------------------------------------------------
     1266//
     1267// Returns the row pointed to by fNumRow into TVector v
     1268//
     1269void 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.