ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fvar_a56.cpp
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Author: David Fournier
5  * Copyright (c) 2008-2012 Regents of the University of California
6  */
11 #include "fvar.hpp"
12 
18  {
19  for (int i=indexmin(); i<=indexmax(); i++)
20  {
21  elem(i)*=x;
22  }
23  return(*this);
24  }
25 
31  {
32  for (int i=indexmin(); i<=indexmax(); i++)
33  {
34  elem(i)*=x;
35  }
36  return(*this);
37  }
Base class for dvariable.
Definition: fvar.hpp:1315
#define x
prevariable elem(int i)
Definition: fvar.hpp:2221
ADMB variable vector.
Definition: fvar.hpp:2172
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int indexmin() const
Definition: fvar.hpp:2287
dvar_vector & operator*=(const prevariable &d)
Description not yet available.
Definition: fvar_a56.cpp:30
int indexmax() const
Definition: fvar.hpp:2292