Changeset 7399 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
11/14/05 10:50:53 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7397 r7399  
    4545   * macros/optim/rfenergyest.C:
    4646     - added
     47
     48   * mhbase/MHMatrix.[h,cc]:
     49     - added new constructor taking a TMatrix and a MDataArray as
     50       argument
    4751
    4852
  • trunk/MagicSoft/Mars/mhbase/MHMatrix.cc

    r7130 r7399  
    115115// --------------------------------------------------------------------------
    116116//
     117//  Constructor. Initializes the columns of the matrix with the entries
     118//  from a MDataArray
     119//
     120MHMatrix::MHMatrix(const TMatrix &m, MDataArray *mat, const char *name, const char *title)
     121    : fNumRows(m.GetNrows()), fM(m), fData(mat)
     122{
     123    fName  = name  ? name  : gsDefName.Data();
     124    fTitle = title ? title : gsDefTitle.Data();
     125}
     126
     127// --------------------------------------------------------------------------
     128//
    117129//  Destructor. Does not deleted a user given MDataArray, except IsOwner
    118130//  was called.
  • trunk/MagicSoft/Mars/mhbase/MHMatrix.h

    r7130 r7399  
    6363    MHMatrix(MDataArray *mat, const char *name=NULL, const char *title=NULL);
    6464    MHMatrix(const TMatrix &m, const char *name=NULL, const char *title=NULL);
     65    MHMatrix(const TMatrix &m, MDataArray *arr, const char *name=NULL, const char *title=NULL);
    6566    ~MHMatrix();
    6667
Note: See TracChangeset for help on using the changeset viewer.