Changeset 2533


Ignore:
Timestamp:
Jul 31, 2011, 6:54:19 PM (10 years ago)
Author:
Peter
Message:

avoid copy

File:
1 edited

Legend:

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

    r2119 r2533  
    5050  {
    5151    add(ap_, x.begin(), x.end(), y.begin());
    52     utility::Matrix X=utility::Matrix(x.size(),power_+1,1);
     52    utility::Matrix X(x.size(),power_+1,1);
    5353    for (size_t i=0; i<X.rows(); ++i)
    5454      for (size_t j=1; j<X.columns(); ++j)
Note: See TracChangeset for help on using the changeset viewer.