ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fvar_a62.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 <admodel.h>
12 
17 dvar_vector posfun(const dvar_vector&x,double eps,const prevariable& _pen)
18 {
19  int mmin=x.indexmin();
20  int mmax=x.indexmax();
21  dvar_vector tmp(mmin,mmax);
22  for (int i=mmin;i<=mmax;i++)
23  {
24  tmp(i)=posfun(x(i),eps,_pen);
25  }
26  return tmp;
27 }
Base class for dvariable.
Definition: fvar.hpp:1315
#define x
dvar_vector posfun(const dvar_vector &x, double eps, const prevariable &pen)
Description not yet available.
Definition: fvar_a62.cpp:17
ADMB variable vector.
Definition: fvar.hpp:2172
Description not yet available.
int indexmin() const
Definition: fvar.hpp:2287
double eps
Definition: ftweak.cpp:13
int indexmax() const
Definition: fvar.hpp:2292