ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
d3arr6.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 "fvar.hpp"
12 
17 d3_array pow(const d3_array& m,int e)
18  {
19  d3_array tmp;
20  tmp.allocate(m);
21  for (int i=tmp.slicemin();i<=tmp.slicemax();i++)
22  {
23  tmp(i)=pow(m(i),e);
24  }
25  return tmp;
26  }
void allocate(const ad_integer &sl, const ad_integer &sh, const index_type &nrl, const index_type &nrh, const index_type &ncl, const index_type &nch)
Allocate array of matrices with dimensions [sl to sh] x [nrl to nrh] x [ncl to nch].
Definition: indextyp.cpp:327
int slicemax() const
Definition: fvar.hpp:3830
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int slicemin() const
Definition: fvar.hpp:3826
Description not yet available.
Definition: fvar.hpp:3727
d3_array pow(const d3_array &m, int e)
Description not yet available.
Definition: d3arr6.cpp:17