Changeset 276


Ignore:
Timestamp:
Apr 14, 2005, 7:26:45 PM (18 years ago)
Author:
Peter
Message:

+= and -= operators added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/vector.h

    r260 r276  
    332332
    333333    ///
     334    /// Addition and assign operator.
     335    ///
     336    /// @return The resulting vector.
     337    ///
     338    inline vector operator+=( const vector& other )
     339    { gsl_vector_add(v_,other.v_); return *this; }
     340
     341
     342    ///
    334343    /// Vector subtraction.
    335344    ///
     
    337346    ///
    338347    vector operator-( const vector& other ) const;
     348
     349    ///
     350    /// Subtract and assign operator.
     351    ///
     352    /// @return The resulting vector.
     353    ///
     354    inline vector operator-=( const vector& other )
     355    { gsl_vector_sub(v_,other.v_); return *this; }
    339356
    340357    ///
Note: See TracChangeset for help on using the changeset viewer.