Ignore:
Timestamp:
Feb 26, 2008, 8:06:28 PM (14 years ago)
Author:
Peter
Message:

removed dynamic_casts

File:
1 edited

Legend:

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

    r1163 r1165  
    9595
    9696 
    97   const DataLookup2D& Kernel::data(void) const
     97  const MatrixLookup& Kernel::data(void) const
    9898  {
    9999    if (weighted())
    100       return *mlw_;
     100      throw std::runtime_error("Kernel:data when Kernel is weighted");
     101    assert(ml_);
    101102    return *ml_;
     103  }
     104
     105
     106  const MatrixLookupWeighted& Kernel::data_weighted(void) const
     107  {
     108    if (!weighted())
     109      throw std::runtime_error("Kernel:data when Kernel is weighted");
     110    assert(mlw_);
     111    return *mlw_;
    102112  }
    103113
Note: See TracChangeset for help on using the changeset viewer.