ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
f3arr8.cpp
Go to the documentation of this file.
1 
5 #include "fvar.hpp"
6 
13 dvar3_array pow(const dvar3_array& base, int exp)
14 {
15  dvar3_array results;
16  results.allocate(base);
17  for (int i = results.slicemin(); i <= results.slicemax(); ++i)
18  {
19  results(i) = pow(base(i), exp);
20  }
21  return results;
22 }
int slicemin() const
Definition: fvar.hpp:4274
void allocate(int sl, int sh, int nrl, int nrh, int ncl, int nch)
Allocate variable vector of matrices with dimensions [sl to sh] x ([nrl to nrh] x [ncl to nch]) where...
Definition: f3arr.cpp:91
int slicemax() const
Definition: fvar.hpp:4275
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
d3_array exp(const d3_array &arr3)
Returns d3_array results with computed exp from elements in arr3.
Definition: d3arr2a.cpp:28
Description not yet available.
Definition: fvar.hpp:4197
d3_array pow(const d3_array &m, int e)
Description not yet available.
Definition: d3arr6.cpp:17