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/SVM.cc

    r1087 r1098  
    158158      const KernelLookup& input_kernel =dynamic_cast<const KernelLookup&>(input);
    159159      assert(input.rows()==alpha_.size());
    160       prediction.clone(utility::matrix(2,input.columns(),0));
     160      prediction.resize(2,input.columns(),0);
    161161      for (size_t i = 0; i<input.columns(); i++){
    162162        for (size_t j = 0; j<input.rows(); j++){
Note: See TracChangeset for help on using the changeset viewer.