ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
df1b2f16.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 
17  ostream& operator << (const ostream& _os, const df1b2variable& _x)
18  {
20  ADUNCONST(ostream,os)
21  os << *x.u;
22  /*
23  os << dvector(df1b2variable::nvar,x.u_dot+1) << endl;
24  os << dvector(df1b2variable::nvar,x.u_bar+1) << endl;
25  os << dvector(df1b2variable::nvar,x.u_dot_bar+1) << endl;
26  */
27  return os;
28  }
29 
34  ostream& operator << (const ostream& _os, const df1b2vector& _x)
35  {
36  ADUNCONST(ostream,os)
38  int mmin=x.indexmin();
39  int mmax=x.indexmax();
40  for (int i=mmin;i<=mmax;i++)
41  {
42  os << x(i) << " ";
43  }
44  return os;
45  }
46 
51  ostream& operator << (const ostream& _os, const df1b2matrix& _x)
52  {
53  ADUNCONST(ostream,os)
55  int mmin=x.indexmin();
56  int mmax=x.indexmax();
57  for (int i=mmin;i<=mmax;i++)
58  {
59  os << x(i) << " ";
60  if (i<mmax) os << endl;
61  }
62  return os;
63  }
64 
69  ostream& operator << (const ostream& _os, const df1b2_init_number_vector& _x)
70  {
71  ADUNCONST(ostream,os)
73  int mmin=x.indexmin();
74  int mmax=x.indexmax();
75  for (int i=mmin;i<=mmax;i++)
76  {
77  os << x(i) << " ";
78  }
79  return os;
80  }
81 
86  ostream& operator << (const ostream& _os,
88  {
89  ADUNCONST(ostream,os)
91  int mmin=x.indexmin();
92  int mmax=x.indexmax();
93  for (int i=mmin;i<=mmax;i++)
94  {
95  os << x(i) << " ";
96  }
97  return os;
98  }
99 
104  ostream& operator << (const ostream& _os,
105  const init_df1b2vector& _x)
106  {
107  ADUNCONST(ostream,os)
109  int mmin=x.indexmin();
110  int mmax=x.indexmax();
111  for (int i=mmin;i<=mmax;i++)
112  {
113  os << x(i) << " ";
114  }
115  return os;
116  }
Description not yet available.
Definition: df1b2fun.h:1548
Description not yet available.
Definition: df1b2fun.h:1491
#define x
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
Definition: fvar.hpp:140
Description not yet available.
Definition: df1b2fun.h:953
Description not yet available.
Definition: df1b2fun.h:266
prnstream & endl(prnstream &)
Description not yet available.
Definition: df1b2fun.h:373
ostream & operator<<(const ostream &_s, preshowpoint p)
Description not yet available.
Definition: admanip.cpp:48
Description not yet available.
Definition: df1b2fun.h:1042
Description not yet available.