ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
i3arr8.cpp
Go to the documentation of this file.
1 
5 #include "fvar.hpp"
6 
14 {
15  if (slicemin() != other.slicemin() || slicemax() != other.slicemax())
16  {
17  cerr << "Incompatible array bounds in "
18  << "i3_array& i3_array::operator=(const i3_array&).\n";
19  ad_exit(1);
20  }
21  // Check that both matrices don't point to the same object.
22  if (t != other.t)
23  {
24  for (int i = slicemin(); i <= slicemax(); ++i)
25  {
26  elem(i) = other.elem(i);
27  }
28  }
29  return *this;
30 }
37 {
38  for (int i = slicemin(); i <= slicemax(); ++i)
39  {
40  elem(i) = value;
41  }
42  return *this;
43 }
i3_array & operator=(const i3_array &other)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: i3arr8.cpp:13
imatrix * t
Definition: fvar.hpp:3946
exitptr ad_exit
Definition: gradstrc.cpp:53
int slicemin() const
Definition: fvar.hpp:4029
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int slicemax() const
Definition: fvar.hpp:4033
dvector value(const df1_one_vector &v)
Definition: df11fun.cpp:69
Description not yet available.
Definition: fvar.hpp:3944
imatrix & elem(int i)
Definition: fvar.hpp:4091