ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
fvar_a56.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include "fvar.hpp"
00012 
00017 dvar_vector& dvar_vector::operator*=(const double x)
00018   {
00019     for (int i=indexmin(); i<=indexmax(); i++)
00020     {
00021       elem(i)*=x;
00022     }
00023     return(*this);
00024   }
00025 
00030 dvar_vector& dvar_vector::operator*=(const prevariable& x)
00031   {
00032     for (int i=indexmin(); i<=indexmax(); i++)
00033     {
00034       elem(i)*=x;
00035     }
00036     return(*this);
00037   }