ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dfadcif.cpp
Go to the documentation of this file.
1 
9 #include <fvar.hpp>
10 #include "cifstrem.h"
11 
12 /*
13 cifstream& cifstream::operator>>(const prevariable& z)
14 {
15  *this >> value(z);
16  return *this;
17 }
18 */
19 
26 {
27  *this >> value(var);
28  return *this;
29 }
36 {
37  for (int i = varvec.indexmin(); i <= varvec.indexmax(); ++i)
38  {
39  *this >> varvec[i];
40  }
41  return *this;
42 }
43 
49 cifstream& operator>>(cifstream& istr, const dvar_matrix& varmat)
50 {
51  for (int i = varmat.rowmin(); i <= varmat.rowmax(); ++i)
52  {
53  if (allocated(varmat[i]))
54  {
55  istr >> varmat[i];
56  }
57  }
58  return istr;
59 }
65 cifstream& operator>>(cifstream& istr, const dvar3_array& vararr3)
66 {
67  for (int i = vararr3.slicemin(); i <= vararr3.slicemax(); ++i)
68  {
69  istr >> vararr3[i];
70  }
71  return istr;
72 }
78 cifstream& operator>>(cifstream& istr, const dvar4_array& vararr4)
79 {
80  for (int i = vararr4.hslicemin(); i <= vararr4.hslicemax(); ++i)
81  {
82  istr >> vararr4[i];
83  }
84  return istr;
85 }
91 cifstream& operator>>(cifstream& istr, const dvar5_array& vararr5)
92 {
93  for (int i = vararr5.indexmin(); i <= vararr5.indexmax(); ++i)
94  {
95  istr >> vararr5(i);
96  }
97  return istr;
98 }
int rowmax(void) const
Definition: fvar.hpp:2564
int slicemin() const
Definition: fvar.hpp:4274
Description not yet available.
Definition: fvar.hpp:5433
int allocated(const ivector &v)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: fvar_a59.cpp:13
int slicemax() const
Definition: fvar.hpp:4275
ADMB variable vector.
Definition: fvar.hpp:2172
cifstream & operator>>(const dvariable &z)
Reads input into var from comment formatted input file.
Definition: dfadcif.cpp:25
int indexmax() const
Definition: fvar.hpp:6650
double var(const dvector &vec)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: cranfill.cpp:23
Description not yet available.
Definition: fvar.hpp:6498
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int indexmin() const
Definition: fvar.hpp:6646
int rowmin(void) const
Definition: fvar.hpp:2560
Description not yet available.
Definition: fvar.hpp:4197
int indexmin() const
Definition: fvar.hpp:2287
istream & operator>>(const istream &input, const d3_array &arr3)
Read values from input stream into arr3.
Definition: d3_io.cpp:60
Class definition of matrix with derivitive information .
Definition: fvar.hpp:2480
int hslicemax() const
Definition: fvar.hpp:5624
Definition of the cifstream class.
dvector value(const df1_one_vector &v)
Definition: df11fun.cpp:69
int hslicemin() const
Definition: fvar.hpp:5623
int indexmax() const
Definition: fvar.hpp:2292
Fundamental data type for reverse mode automatic differentiation.
Definition: fvar.hpp:1518