ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dvect21.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 /*
9  dvector dvector::operator()(int low,int high)
10  {
11  if (low>high)
12  {
13  cerr << " low index > high index in"
14  " dvector::operator()(int low,int high)" << endl;
15  ad_exit(1);
16  }
17  if (low<indexmin())
18  {
19  cerr << "lower index out of bounds in"
20  " dvector::operator()(int low,int high)" << endl ;
21  ad_exit(1);
22  }
23  if (high>indexmax())
24  {
25  cerr << "upper index out of bounds in"
26  " dvector::operator()(int low,int high)" << endl;
27  ad_exit(1);
28  }
29  dvector tmp(low,high);
30  for (int i=low;i<=high;i++)
31  {
32  tmp(i)=(*this)(i);
33  }
34  return tmp;
35  }
36 */
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.