ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
fvar_a62.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 <admodel.h>
00012 
00017 dvar_vector posfun(const dvar_vector&x,double eps,const prevariable& _pen)
00018 {
00019   int mmin=x.indexmin();
00020   int mmax=x.indexmax();
00021   dvar_vector tmp(mmin,mmax);
00022   for (int i=mmin;i<=mmax;i++)
00023   {
00024     tmp(i)=posfun(x(i),eps,_pen);
00025   }
00026   return tmp;
00027 }