Changeset 1549 for trunk


Ignore:
Timestamp:
Oct 6, 2008, 1:49:03 PM (13 years ago)
Author:
Peter
Message:

adding some typedefs in Container2Ds - refs #448

Location:
trunk/yat
Files:
6 edited

Legend:

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

    r1487 r1549  
    350350
    351351
    352   double KernelLookup::operator()(size_t row, size_t column) const
     352  KernelLookup::const_reference
     353  KernelLookup::operator()(size_t row, size_t column) const
    353354  {
    354355    return (*kernel_)(row_index_[row],column_index_[column]);
  • trunk/yat/classifier/KernelLookup.h

    r1529 r1549  
    6868
    6969  public:
     70    /**
     71       const_reference type is const double
     72
     73       \since New in yat 0.5
     74     */
     75    typedef const double const_reference;
     76
    7077    /// 'Read Only' iterator
    7178    typedef utility::StrideIterator<
     
    301308       matrix
    302309    */
    303     double operator()(size_t row, size_t column) const;
     310    const_reference operator()(size_t row, size_t column) const;
    304311
    305312  private:
  • trunk/yat/classifier/MatrixLookup.h

    r1530 r1549  
    7272  {
    7373  public:
     74    /**
     75       value_type is double
     76
     77       \since New in yat 0.5
     78     */
     79    typedef utility::Matrix::value_type value_type;
     80
     81    /**
     82       const_reference type is const double&
     83
     84       \since New in yat 0.5
     85     */
     86    typedef utility::Matrix::const_reference const_reference;
     87
    7488    /// 'Read Only' iterator
    7589    typedef utility::Container2DIterator<const MatrixLookup, double,
  • trunk/yat/classifier/MatrixLookupWeighted.h

    r1487 r1549  
    2626
    2727#include "yat/utility/Container2DIterator.h"
     28#include "yat/utility/DataWeight.h"
    2829#include "yat/utility/Index.h"
    2930#include "yat/utility/IteratorPolicy.h"
     
    7172 
    7273  public:
     74    /**
     75       value_type is DataWeight
     76
     77       \since New in yat 0.5
     78     */
     79    typedef utility::DataWeight value_type;
     80
     81    /**
     82       const_reference type is const DataWeight
     83
     84       \since New in yat 0.5
     85     */
     86    typedef const utility::DataWeight const_reference;
     87
    7388    /// 'Read Only' iterator
    7489    typedef utility::StrideIterator<
  • trunk/yat/utility/Matrix.h

    r1547 r1549  
    6363  public:
    6464    /**
     65       value_type is double
     66
     67       \since New in yat 0.5
     68     */
     69    typedef double value_type;
     70
     71    /**
    6572       reference type is double&
    6673
  • trunk/yat/utility/MatrixWeighted.h

    r1547 r1549  
    4444  public:
    4545    /**
     46       value_type is DataWeight
     47
     48       \since New in yat 0.5
     49     */
     50    typedef DataWeight value_type;
     51
     52    /**
    4653       reference type is DataWeight&
    4754     */
Note: See TracChangeset for help on using the changeset viewer.