ADMB Documentation  11.1.2503
 All Classes Files Functions Variables Typedefs Friends Defines
f3arr11.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: f3arr11.cpp 1942 2014-04-28 22:22:45Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include "fvar.hpp"
00012 
00017 dvar3_array mfexp(const dvar3_array& m)
00018 {
00019   dvar3_array tmp;
00020   tmp.allocate(m);
00021   for (int i=tmp.slicemin();i<=tmp.slicemax();i++)
00022   {
00023     tmp(i) = mfexp(m(i));
00024   }
00025   return tmp;
00026 }
00027 
00032 dvar3_array mfexp(const dvar3_array& m, const double d)
00033 {
00034   dvar3_array tmp;
00035   tmp.allocate(m);
00036   for (int i=tmp.slicemin();i<=tmp.slicemax();i++)
00037   {
00038     tmp(i)=mfexp(m(i),d);
00039   }
00040   return tmp;
00041 }