Ignore:
Timestamp:
Mar 2, 2007, 12:53:03 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #200.

File:
1 edited

Legend:

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

    r767 r775  
    216216
    217217    /**
    218        \brief Vector addition, \f$ this_i = this_i + other_i \;
    219        \forall i \f$.
    220 
    221        \throw GSL_error if dimensions mis-match.
    222     */
    223     void add(const vector& other);
    224 
    225     /**
    226        \brief Add a constant to a vector, \f$ this_i = this_i + term \;
    227        \forall i \f$.
    228     */
    229     void add(double term);
    230 
    231     /**
    232218       \brief This function performs element-wise division, \f$ this_i =
    233219       this_i/other_i \; \forall i \f$.
     
    311297
    312298    /**
    313        \brief Rescale vector, \f$ this_i = this_i * factor \; \forall i \f$.
    314     */
    315     void scale(double factor);
    316 
    317     /**
    318299       \brief Set element values to values in \a vec.
    319300
     
    354335    ///
    355336    void sort(void);
    356 
    357     /**
    358        \brief Vector subtraction, \f$ this_i = this_i - other_i \;
    359        \forall i \f$.
    360 
    361        \throw GSL_error if dimensions mis-match.
    362     */
    363     void sub(const vector& other);
    364337
    365338    ///
     
    455428
    456429    /**
    457        \brief Addition and assign operator.
     430       \brief Addition and assign operator. Vector addition, \f$
     431       this_i = this_i + other_i \; \forall i \f$.
    458432
    459433       \return A const reference to the resulting vector.
     
    464438
    465439    /**
    466        \brief Subtract and assign operator.
     440       \brief Add a constant to a vector, \f$ this_i = this_i + d \;
     441       \forall i \f$.
    467442
    468443       \return A const reference to the resulting vector.
     444    */
     445    const vector& operator+=(double d);
     446
     447    /**
     448       \brief Subtract and assign operator. Vector subtraction, \f$
     449       this_i = this_i - other_i \; \forall i \f$.
     450
     451       \return A const reference to the resulting vector.
    469452
    470453       \throw GSL_error if dimensions mis-match.
     
    472455    const vector& operator-=(const vector&);
    473456
    474     ///
    475     /// Multiply with scalar and assign operator.
    476     ///
    477     /// @return A const reference to the resulting vector.
    478     ///
    479     const vector& operator*=(const double);
     457    /**
     458       \brief Subtract a constant to a vector, \f$ this_i = this_i - d
     459       \; \forall i \f$.
     460
     461       \return A const reference to the resulting vector.
     462    */
     463    const vector& operator-=(double d);
     464
     465    /**
     466       \brief Multiply with scalar and assign operator, \f$ this_i =
     467       this_i * d \; \forall i \f$.
     468
     469       \return A const reference to the resulting vector.
     470    */
     471    const vector& operator*=(double d);
    480472
    481473
Note: See TracChangeset for help on using the changeset viewer.