Ignore:
Timestamp:
Jul 31, 2011, 7:00:28 PM (10 years ago)
Author:
Peter
Message:

avoid copy

File:
1 edited

Legend:

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

    r2119 r2534  
    5858    assert(x.rows()==y.size());
    5959    covariance_.resize(x.columns(),x.columns());
    60     fit_parameters_ = utility::Vector(x.columns());
     60    fit_parameters_.resize(x.columns());
    6161    if (work_)
    6262      gsl_multifit_linear_free(work_);
     
    7373    s2_ = chisquare_/(x.rows()-x.columns());
    7474  }
     75
    7576
    7677  const utility::Vector& MultiDimensional::fit_parameters(void) const
Note: See TracChangeset for help on using the changeset viewer.