ADMB Documentation
-a65f1c97
Main Page
Function Reference
Classes
Source Code
Related Pages
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
linad99
fvar_a52.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
dvar_vector dvar_vector::operator()(int low,int high)
10
{
11
if (low>high)
12
{
13
cerr << " low index > high index in"
14
" dvar_vector::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
" dvar_vector::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
" dvar_vector::operator()(int low,int high)" << endl;
27
ad_exit(1);
28
}
29
dvar_vector tmp(low,high);
30
for (int i=low;i<=high;i++)
31
{
32
tmp(i)=(*this)(i);
33
}
34
return tmp;
35
}
36
*/
fvar.hpp
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Generated on Wed Sep 7 2022 00:01:28 for ADMB Documentation by
1.8.5