ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
f1b2vc7.cpp
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Author: David Fournier
5  * Copyright (c) 2008-2012 Regents of the University of California
6  */
11 #include <df1b2fun.h>
12 
18 {
19  v += indexmin()-min;
21  index_min=min;
22  //shape->shift(min);
23  return *this;
24 }
25 
26 /*
27  df1b2vector::df1b2vector(const predf1b2vector& pdv)
28  {
29 #ifndef OPT_LIB
30  if (pdv.ub<pdv.lb)
31  {
32  cerr << "lower index greater than upper index in df1b2vector::"
33  " dvar-vector(const predf1b2vector&) " << endl;
34  ad_exit (1);
35  }
36  if ((pdv.lb<pdv.p->indexmin()) || (pdv.lb>pdv.p->indexmax()))
37  {
38  cerr << "lower index out of bounds in df1b2vector::"
39  " operator(int lb,int ub) " << endl;
40  ad_exit (1);
41  }
42 
43  if ((pdv.ub<pdv.p->indexmin()) || (pdv.ub>pdv.p->indexmax()))
44  {
45  cerr << " upper index out of bounds in df1b2vector::"
46  " operator(int lb,int ub) " << endl;
47  ad_exit (1);
48  }
49 #endif
50  index_min=pdv.lb;
51  index_max=pdv.ub;
52  shape=pdv.p->shape;
53  (shape->ncopies)++;
54  v = pdv.p->v;
55  }
56 */
Description not yet available.
Definition: df1b2fun.h:953
int indexmin(void) const
Definition: df1b2fun.h:969
df1b2vector & shift(int)
Description not yet available.
Definition: f1b2vc7.cpp:17
#define min(a, b)
Definition: cbivnorm.cpp:188
Description not yet available.
df1b2variable * v
Definition: df1b2fun.h:955