Ignore:
Timestamp:
Feb 14, 2008, 5:26:31 PM (16 years ago)
Author:
Peter
Message:

fixes #267 iterator for MatrixLookupWeighted?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/MatrixLookupWeighted.h

    r1090 r1091  
    251251    virtual ~MatrixLookupWeighted();
    252252
     253    /**
     254       Iterator iterates along a row. When end of row is reached it
     255       jumps to beginning of next row.
     256
     257       \return const_iterator pointing to upper-left element.
     258     */
     259    const_iterator begin(void) const;
     260
     261    /**
     262       Iterator iterates along a column.
     263
     264       \return iterator pointing to first element of column \a i.
     265     */
     266    const_iterator begin_column(size_t) const;
     267
     268    /**
     269       Iterator iterates along a column.
     270
     271       \return const_iterator pointing to first element of column \a i.
     272     */
     273    const_iterator begin_row(size_t) const;
     274
    253275    ///
    254276    /// @return data value of element (@a row, @a column)
    255277    ///
    256278    double data(size_t row, size_t column) const;
     279
     280    /**
     281       \return const_iterator pointing to end of matrix
     282     */
     283    const_iterator end(void) const;
     284
     285    /**
     286       \return const_iterator pointing to end of column \a i
     287     */
     288    const_iterator end_column(size_t) const;
     289
     290    /**
     291       \return const_iterator pointing to end of row \a i
     292     */
     293    const_iterator end_row(size_t) const;
    257294
    258295    /**
Note: See TracChangeset for help on using the changeset viewer.