ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ivec3.cpp
Go to the documentation of this file.
1 
5 #include "fvar.hpp"
6 
16 {
17  ivector values(indexes.indexmin(), indexes.indexmax());
18  for (int i = values.indexmin(); i <= values.indexmax(); ++i)
19  {
20  values(i) = operator()(indexes(i));
21  }
22  return values;
23 }
33 {
34  lvector values(indexes.indexmin(),indexes.indexmax());
35  for (int i = values.indexmin(); i <= values.indexmax(); ++i)
36  {
37  values(i) = operator()(indexes(i));
38  }
39  return values;
40 }
Description not yet available.
Definition: fvar.hpp:656
Array of integers(int) with indexes from index_min to indexmax.
Definition: ivector.h:50
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int & operator()(int i)
Definition: ivector.h:198
int indexmin() const
Definition: ivector.h:99
int indexmax() const
Definition: ivector.h:104
values
Definition: adjson.h:22
AD_LONG_INT & operator()(int i)
Definition: fvar.hpp:746