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_ma8.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
//#undef OPT_LIB
12
#include "
fvar.hpp
"
13
14
#if !defined(OPT_LIB)
15
20
dvar_vector
&
dvar_matrix::operator()
(
int
i)
21
{
22
if
(i<
rowmin
())
23
{
24
cerr <<
"matrix bound exceeded -- row index too low in "
25
"dvar_matrix::operator()"
<<
"value was"
<< i <<
endl
;
26
ad_exit
(21);
27
}
28
if
(i>
rowmax
())
29
{
30
cerr <<
"matrix bound exceeded -- row index too high in "
31
"dvar_matrix::operator()"
<<
"value was"
<< i <<
endl
;
32
ad_exit
(22);
33
}
34
return
m
[i];
35
}
36
#endif
dvar_matrix::rowmax
int rowmax(void) const
Definition:
fvar.hpp:2564
ad_exit
exitptr ad_exit
Definition:
gradstrc.cpp:53
dvar_vector
ADMB variable vector.
Definition:
fvar.hpp:2172
endl
prnstream & endl(prnstream &)
fvar.hpp
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
dvar_matrix::rowmin
int rowmin(void) const
Definition:
fvar.hpp:2560
dvar_matrix::operator()
dvar_vector & operator()(int i)
Definition:
fvar.hpp:2776
dvar_matrix::m
dvar_vector * m
Definition:
fvar.hpp:2484
Generated on Wed Sep 7 2022 00:01:28 for ADMB Documentation by
1.8.5