/*
 * $Id: ivec9.cpp 1112 2013-07-12 21:41:41Z johnoel $
 *
 * Author: David Fournier
 * Copyright (c) 2008-2012 Regents of the University of California
 */
/**
 * \file
 * Description not yet available.
 */
#include "fvar.hpp"

/**
 * Description not yet available.
 * \param
 */
  ivector& ivector::operator +=(const ivector& j)
  {
     int mmin=indexmin();
     int mmax=indexmax();
     if (mmin != j.indexmin() || mmax != j.indexmax())
     {
       cerr << " Incompatible array sizes in ivector::operator +=" << endl;
       exit(1);
     }
     for (int i=mmin; i<=mmax; i++)
     {
       (*this)(i)+=j(i);
     }
     return(*this);
  }

/**
 * Description not yet available.
 * \param
 */
  ivector& ivector::operator +=(int j)
  {
     int mmin=indexmin();
     int mmax=indexmax();
     for (int i=mmin; i<=mmax; i++)
     {
       (*this)(i)+=j;
     }
     return(*this);
  }
