Ignore:
Timestamp:
Mar 11, 2007, 1:14:24 AM (15 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.

File:
1 edited

Legend:

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

    r747 r792  
    146146
    147147    assert(input.rows()==alpha_.size());
    148     prediction = utility::matrix(2,input.columns(),0);
     148    prediction.clone(utility::matrix(2,input.columns(),0));
    149149    for (size_t i = 0; i<input.columns(); i++){
    150150      for (size_t j = 0; j<input.rows(); j++){
     
    182182  {
    183183    trained_=false;
    184     alpha_=utility::vector(target_.size(), 0);
     184    alpha_.clone(utility::vector(target_.size(), 0));
    185185  }
    186186
     
    413413  }
    414414
    415 
    416415}}} // of namespace classifier, yat, and theplu
Note: See TracChangeset for help on using the changeset viewer.