Ignore:
Timestamp:
Feb 10, 2009, 5:11:04 PM (12 years ago)
Author:
Peter
Message:

Speeding up copying from Matrix to MatrixWeighted? using
BinaryWeight?. Moving BinaryWeight? from stl_utility.h to
utility.h. Improved docs in MatrixWeighted?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/MatrixWeighted.h

    r1706 r1789  
    3838  class Matrix;
    3939
    40   ///
    41   /// @brief Weighted Matrix
    42   ///
     40  /**
     41     \brief Weighted Matrix
     42 
     43     \since New in yat 0.5
     44
     45  */
    4346  class MatrixWeighted
    4447  {
     
    4649    /**
    4750       value_type is DataWeight
    48 
    49        \since New in yat 0.5
    5051     */
    5152    typedef DataWeight value_type;
     
    118119
    119120       Data is copied from \a other and weights are calculated using
    120        the nan function.
     121       the BinaryWeight functor.
    121122    */
    122123    explicit MatrixWeighted(const Matrix& other);
     
    211212
    212213    /**
     214       \brief Resize Matrix
     215
     216       \note this function may invalidate iterators.
     217    */
     218    void resize(size_t rows, size_t columns);
     219
     220    /**
     221       \return The number of rows in the matrix.
     222    */
     223    size_t rows(void) const;
     224
     225    /**
    213226       \brief swap objects
    214227
    215228       Takes constant time. Invalidates iterators.
     229       There is no requirement on the size of \a other.
    216230     */
    217231    void swap(MatrixWeighted& other);
    218 
    219     /**
    220        \brief Resize Matrix
    221 
    222        \note this function may invalidate iterators.
    223     */
    224     void resize(size_t, size_t);
    225 
    226     /**
    227        \return The number of rows in the matrix.
    228     */
    229     size_t rows(void) const;
    230232
    231233    /**
     
    254256  private:
    255257    void copy(const Matrix&);
    256     void copy(const Matrix& data, const Matrix& weight);
    257258
    258259    std::vector<DataWeight> vec_;
Note: See TracChangeset for help on using the changeset viewer.