Ignore:
Timestamp:
Mar 11, 2006, 11:21:27 PM (17 years ago)
Author:
Peter
Message:

some changes in EB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/classifier/KernelLookup.cc

    r553 r559  
    5858 
    5959
     60  KernelLookup::KernelLookup(const KernelLookup& kl,
     61                             const std::vector<size_t>& index,
     62                             const bool row)
     63    : DataLookup2D(kl,index,row), kernel_(kl.kernel_)
     64  {
     65    // Checking that no index is out of range
     66    assert(row_index_.empty() ||
     67           *(max_element(row_index_.begin(), row_index_.end()))<kernel_->rows());
     68    assert(column_index_.empty() ||
     69           *(max_element(column_index_.begin(), column_index_.end()))<
     70           kernel_->columns());
     71
     72  }
     73 
     74
    6075  KernelLookup::~KernelLookup(void)
    6176  {
Note: See TracChangeset for help on using the changeset viewer.