ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cmpdif10.cpp
Go to the documentation of this file.
1 
5 #include "fvar.hpp"
6 #ifdef __TURBOC__
7  #pragma hdrstop
8 #endif
9 
16  : lb(m.rowmin(),m.rowmax()), ub(m.rowmin(),m.rowmax()),
17  ptr(m.rowmin(),m.rowmax())
18 {
19  row_min=m.rowmin();
20  row_max=m.rowmax();
21  for (int i=row_min;i<=row_max;i++)
22  {
23  lb(i)=m(i).indexmin();
24  ub(i)=m(i).indexmax();
25  ptr(i)=m(i).get_v();
26  }
27 }
36  : lb(min,max), ub(min,max), ptr(min,max)
37 {
38  row_min=min;
39  row_max=max;
40  for (int i=row_min;i<=row_max;i++)
41  {
42  lb(i)=0;
43  ub(i)=-1;
44  ptr(i)=0;
45  }
46 }
53  : lb(p.row_min,p.row_max), ub(p.row_min,p.row_max),
54  ptr(p.row_min,p.row_max)
55 {
56  row_min=p.row_min;
57  row_max=p.row_max;
58  lb=p.lb;
59  ub=p.ub;
60  ptr=p.ptr;
61  // cout << "ptr= " << ptr ;
62 }
ptr_vector ptr
Definition: imatrix.h:55
int indexmax() const
Definition: imatrix.h:142
Description not yet available.
Definition: imatrix.h:69
ivector ub
Definition: imatrix.h:54
Description not yet available.
Definition: imatrix.h:48
int indexmin() const
Definition: imatrix.h:138
int rowmin() const
Definition: imatrix.h:146
imatrix_position(const imatrix &)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: cmpdif10.cpp:15
ivector lb
Definition: imatrix.h:53
#define min(a, b)
Definition: cbivnorm.cpp:188
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
#define max(a, b)
Definition: cbivnorm.cpp:189
int rowmax() const
Definition: imatrix.h:150