Revision 999 trunk/src/df1b2-separable/f1b2vc1.cpp

f1b2vc1.cpp (revision 999)
280 280
 * Description not yet available.
281 281
 * \param
282 282
 */
283
df1b2vector& df1b2vector::operator += (const dvector& _x)
284
{
285
  ADUNCONST(dvector,x)
286
  check_shape(*this,x,"operator +=");
287
 
288
  int mmin=x.indexmin();
289
  int mmax=x.indexmax();
290

  
291
  for (int i=mmin;i<=mmax;i++)
292
  {
293
    (*this)(i)+=x(i);
294
  }
295
  return *this;
296
}
297

  
298
/**
299
 * Description not yet available.
300
 * \param
301
 */
283 302
df1b2vector& df1b2vector::operator -= (const df1b2vector& _x)
284 303
{
285 304
  ADUNCONST(df1b2vector,x)
......
299 318
 * Description not yet available.
300 319
 * \param
301 320
 */
321
df1b2vector& df1b2vector::operator -= (const dvector& _x)
322
{
323
   ADUNCONST(dvector,x)
324
   check_shape(*this,x,"operator -");
325

  
326
   int mmin=x.indexmin();
327
   int mmax=x.indexmax();
328

  
329
   for (int i=mmin;i<=mmax;i++)
330
   {
331
     (*this)(i)-=x(i);
332
   }
333
   return *this;
334
}
335

  
336
/**
337
 * Description not yet available.
338
 * \param
339
 */
302 340
df1b2vector& df1b2vector::operator *= (const df1b2variable& _x)
303 341
{
304 342
  ADUNCONST(df1b2variable,x)

Also available in: Unified diff