ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pow_vectorized_RE.cpp
Go to the documentation of this file.
1 #include <admodel.h>
2 #include <df1b2fun.h>
3 #include <adrndeff.h>
5 {
7  df1b2vector y(x.indexmin(), x.indexmax());
8 
9  for(int i=x.indexmin(); i<=x.indexmax(); i++)
10  {
11  y(i)=pow(x(i),a);
12  }
13 
15  return(y);
16 }
17 df1b2vector pow(const dvector& x, const df1b2vector& a)
18 {
20  df1b2vector y(x.indexmin(), x.indexmax());
21 
22  for(int i=x.indexmin(); i<=x.indexmax(); i++)
23  {
24  y(i)=pow(x(i),a(i));
25  }
26 
28  return(y);
29 }
31 {
33  dvar_vector y(x.indexmin(), x.indexmax());
34 
35  for(int i=x.indexmin(); i<=x.indexmax(); i++)
36  {
37  y(i)=pow(x(i),a(i));
38  }
39 
41  return(y);
42 }
43 
44 
Description not yet available.
void RETURN_ARRAYS_DECREMENT(void)
Decrements gradient_structure::RETURN_ARRAYS_PTR.
Definition: gradstrc.cpp:507
#define x
Vector of double precision numbers.
Definition: dvector.h:50
int indexmin() const
Get minimum valid index.
Definition: dvector.h:199
Description not yet available.
Definition: df1b2fun.h:953
ADMB variable vector.
Definition: fvar.hpp:2172
Description not yet available.
Definition: df1b2fun.h:266
int indexmax() const
Get maximum valid index.
Definition: dvector.h:204
Description not yet available.
Description not yet available.
void RETURN_ARRAYS_INCREMENT(void)
Increments gradient_structure::RETURN_ARRAYS_PTR.
Definition: gradstrc.cpp:474
d3_array pow(const d3_array &m, int e)
Description not yet available.
Definition: d3arr6.cpp:17