Changeset 546


Ignore:
Timestamp:
Mar 6, 2006, 3:48:01 PM (16 years ago)
Author:
Peter
Message:

inlined function

Location:
trunk/lib/classifier
Files:
2 edited

Legend:

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

    r545 r546  
    7171  }
    7272
    73   const MatrixLookup* KernelLookup::weights(void) const
    74   { return new MatrixLookup(kernel_->weights(),column_index_); }
    7573
    7674  const KernelLookup*
  • trunk/lib/classifier/KernelLookup.h

    r545 r546  
    66#include <c++_tools/classifier/Kernel.h>
    77#include <c++_tools/classifier/DataLookup2D.h>
     8#include <c++_tools/classifier/MatrixLookup.h>
    89#include <vector>
    910
     
    148149    /// to be deleted by the caller to avoid memory leaks.
    149150    ///
    150     const MatrixLookup* weights(void) const;
    151 
     151    inline const MatrixLookup* weights(void) const
     152    { return new MatrixLookup(kernel_->weights(),column_index_); }
    152153
    153154  private:
Note: See TracChangeset for help on using the changeset viewer.