ADMB Documentation  11.5.3349
 All Classes Files Functions Variables Typedefs Friends Defines
d3arr7.cpp
Go to the documentation of this file.
00001 
00005 #include "fvar.hpp"
00006 
00010 d3_array mfexp(const d3_array& m)
00011 {
00012   d3_array tmp;
00013   tmp.allocate(m);
00014   for (int i = tmp.slicemin(); i <= tmp.slicemax(); ++i)
00015   {
00016     tmp(i) = mfexp(m(i));
00017   }
00018   return tmp;
00019 }
00023 d3_array mfexp(const d3_array& m, const double d)
00024 {
00025   d3_array tmp;
00026   tmp.allocate(m);
00027   for (int i = tmp.slicemin(); i <= tmp.slicemax(); ++i)
00028   {
00029     tmp(i) = mfexp(m(i), d);
00030   }
00031   return tmp;
00032 }