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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/Kernel_SEV.cc

    r1000 r1098  
    4747    : Kernel(data,kf, own)
    4848  {
    49     kernel_matrix_.clone(utility::matrix(data_->columns(),data_->columns()));
     49    kernel_matrix_.resize(data_->columns(),data_->columns());
    5050    for (size_t i=0; i<kernel_matrix_.rows(); i++)
    5151      for (size_t j=i; j<kernel_matrix_.columns(); j++)
     
    6666  void Kernel_SEV::build_kernel(void)
    6767  {
    68     kernel_matrix_.clone(utility::matrix(data_->columns(),data_->columns()));
     68    kernel_matrix_.resize(data_->columns(),data_->columns());
    6969    for (size_t i=0; i<kernel_matrix_.rows(); i++)
    7070      for (size_t j=i; j<kernel_matrix_.columns(); j++)
Note: See TracChangeset for help on using the changeset viewer.