00001 /* 00002 * $Id$ 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 pow(const dvar3_array& m, int e) 00018 { 00019 dvar3_array tmp; 00020 tmp.allocate(m); 00021 for (int i=tmp.slicemin();i<=tmp.slicemax();i++) 00022 { 00023 tmp(i)=pow(m(i),e); 00024 } 00025 return tmp; 00026 }
Generated on Tue Mar 8 2016 19:51:32 for ADMB Documentation by 1.8.0 |