Changeset 792 for trunk/yat/regression


Ignore:
Timestamp:
Mar 11, 2007, 1:14:24 AM (14 years ago)
Author:
Jari Häkkinen
Message:

Addresses #193. matrix now works as outlined in the ticket
discussion. Added support for const views. Added a clone function that
facilitates resizing of matrices. clone is needed since assignement
operator functionality is changed.

Location:
trunk/yat/regression
Files:
2 edited

Legend:

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

    r789 r792  
    5656  {
    5757    assert(x.rows()==y.size());
    58     covariance_=utility::matrix(x.columns(),x.columns());
     58    covariance_.clone(utility::matrix(x.columns(),x.columns()));
    5959    fit_parameters_.clone(utility::vector(x.columns()));
    6060    if (work_)
  • trunk/yat/regression/MultiDimensionalWeighted.cc

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