Ignore:
Timestamp:
Feb 11, 2008, 8:29:36 PM (13 years ago)
Author:
Peter
Message:

some documentation and vector::operator=(const VectorBase?&)

File:
1 edited

Legend:

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

    r1036 r1068  
    180180
    181181
    182   /*
    183   //Peter use swap idiom
    184   const VectorBase& vector::operator=( const VectorBase& other )
    185   {
    186     if (!other.size())
    187       vec_=NULL;
    188     else  {   
    189       if (size()!=other.size())
    190         resize(other.size(),0.0);
    191       gsl_vector_memcpy(vec_,other.gsl_vector_p());
    192     }
    193     return *this;
     182  const vector& vector::operator=( const VectorBase& other )
     183  {
     184    return assign(other);
    194185  }
    195   */
     186
    196187
    197188  const vector& vector::operator=( const vector& other )
     
    200191  }
    201192
    202   /* 
    203   const VectorBase& vector::assign(VectorBase& other)
    204   {
    205     assign(other);
    206   }
    207   */
    208193
    209194  const vector& vector::assign(const VectorBase& other)
Note: See TracChangeset for help on using the changeset viewer.