ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
f3arr7.cpp
Go to the documentation of this file.
1 
5 #include "fvar.hpp"
6 
13 {
14  dvar_matrix result;
15  result.allocate(varmat);
16  for (int i = result.rowmin(); i <= result.rowmax(); ++i)
17  {
18  result(i) = cube(varmat(i));
19  }
20  return result;
21 }
27 dvar3_array cube(const dvar3_array& vararr3)
28 {
29  dvar3_array result;
30  result.allocate(vararr3);
31  for (int i = result.slicemin(); i <= result.slicemax(); ++i)
32  {
33  result(i) = cube(vararr3(i));
34  }
35  return result;
36 }
int rowmax(void) const
Definition: fvar.hpp:2564
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
d3_array cube(const d3_array &m)
Description not yet available.
Definition: d3arr5.cpp:17
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int rowmin(void) const
Definition: fvar.hpp:2560
Description not yet available.
Definition: fvar.hpp:4197
Class definition of matrix with derivitive information .
Definition: fvar.hpp:2480
void allocate(int nrl, int nrh, int ncl, int nch)
Allocates AD variable matrix with dimensions nrl to nrh by ncl to nch.
Definition: fvar_mat.cpp:216