ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
d5arr1.cpp
Go to the documentation of this file.
1 
5 #include "fvar.hpp"
6 
13 d5_array operator/(const d5_array& arr5, const double d)
14 {
15  d5_array results;
16  results.allocate(arr5);
17  for (int i = results.indexmin(); i <= results.indexmax(); ++i)
18  {
19  results(i) = arr5(i) / d;
20  }
21  return results;
22 }
28 void d5_array::operator/=(const double d)
29 {
30  for (int i = indexmin(); i <= indexmax(); ++i)
31  {
32  (*this)(i) /= d;
33  }
34 }
void operator/=(double d)
Divides all elements of d5_array by d.
Definition: d5arr1.cpp:28
dvector * d
Definition: fvar.hpp:3649
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int indexmin() const
Definition: fvar.hpp:6475
int indexmax() const
Definition: fvar.hpp:6479
void allocate(int hhsl, int hhsu, int hsl, int hsu, int sl, int sh, int nrl, int nrh, int ncl, int nch)
Allocate d5_array with specified dimensions.
Definition: d5arr.cpp:352
Description not yet available.
Definition: fvar.hpp:6331
d3_array operator/(const d3_array &m, const double d)
Author: David Fournier.
Definition: d3arr2b.cpp:14