ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dmat7.cpp
Go to the documentation of this file.
1 
5 #if (__cplusplus > 199711L)
6  #include <iterator>
7  #include <algorithm>
8 #endif
9 #include "fvar.hpp"
10 
13 {
14  // only initialize allocated objects
15  if (m)
16  {
17 #if (__cplusplus <= 199711L)
18  for (int i = rowmin(); i <= rowmax(); ++i)
19  {
20  elem(i).initialize();
21  }
22 #else
23  std::for_each(begin(), end(), [](dvector& v) {
24  v.initialize();
25  });
26 #endif
27  }
28 }
Vector of double precision numbers.
Definition: dvector.h:50
int rowmax() const
Definition: fvar.hpp:2929
dvector * begin() const
Definition: fvar.hpp:2900
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
dvector * m
Definition: fvar.hpp:2824
void initialize(void)
Initialze all elements of dvector to zero.
Definition: dvect5.cpp:10
dvector & elem(int i)
Definition: fvar.hpp:3011
dvector * end() const
Definition: fvar.hpp:2904
void initialize(void)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: dmat7.cpp:12
int rowmin() const
Definition: fvar.hpp:2925