Changeset 1098 for trunk/yat/regression


Ignore:
Timestamp:
Feb 18, 2008, 4:13:53 AM (13 years ago)
Author:
Jari Häkkinen
Message:

Fixes #299. Memory leak in matrix was found and removed.

Location:
trunk/yat/regression
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/regression/MultiDimensional.cc

    r1021 r1098  
    5959  {
    6060    assert(x.rows()==y.size());
    61     covariance_.clone(utility::matrix(x.columns(),x.columns()));
     61    covariance_.resize(x.columns(),x.columns());
    6262    fit_parameters_ = utility::vector(x.columns());
    6363    if (work_)
  • trunk/yat/regression/MultiDimensionalWeighted.cc

    r1022 r1098  
    5858    assert(x.rows()==y.size());
    5959
    60     covariance_.clone(utility::matrix(x.columns(),x.columns()));
     60    covariance_.resize(x.columns(),x.columns());
    6161    fit_parameters_ = utility::vector(x.columns());
    6262    if (work_)
Note: See TracChangeset for help on using the changeset viewer.