ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
model9.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  */
7 #include <fvar.hpp>
8 #include <admodel.h>
9 
10 int operator+(const int n, const data_int& v)
11 {
12  return n+v.val;
13 }
14 
15 int operator+(const data_int& v, const int n)
16 {
17  return n+v.val;
18 }
19 
20 int operator+(const data_int& v, const data_int& n)
21 {
22  return n.val + v.val;
23 }
24 
26 {
27  val=xx;
28  return *this;
29 }
30 
31 ad_integer::ad_integer(const data_int& _d) : d(int(*(data_int*)(&_d))) {}
32 /*
33 
34 index_type::index_type(const data_int& _x)
35 {
36  p = new number_index(int((data_int&)(_x)));
37 }
38 */
Description not yet available.
Definition: admodel.h:1474
ad_integer(const int &_d, const adkludge &)
Definition: fvar.hpp:7664
d3_array operator+(const d3_array &a, const d3_array &b)
Returns d3_array results with computed elements addition of a(i, j, k) + b(i, j, k).
Definition: d3arr2a.cpp:132
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int val
Definition: admodel.h:1477
Description not yet available.
data_int & operator=(const data_int &other)
Definition: admodel.h:1490