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_m48.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
const
dvar_vector
&
dvar_matrix::operator()
(
int
i)
const
21
{
22
if
(i<
rowmin
())
23
{
24
cerr <<
"matrix bound exceeded -- row index too low in "
25
"dvar_matrix::operator()"
26
<<
"value was"
<< i <<
endl
;
27
ad_exit
(21);
28
}
29
if
(i>
rowmax
())
30
{
31
cerr <<
"matrix bound exceeded -- row index too high in "
32
"dvar_matrix::operator()"
33
<<
"value was"
<< i <<
endl
;
34
ad_exit
(22);
35
}
36
return
m
[i];
37
}
38
#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