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
dmat32.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
#include "
fvar.hpp
"
12
#if !defined(OPT_LIB)
13
17
const
dvector
&
dmatrix::operator()
(
int
i)
const
18
{
19
if
(i<
rowmin
())
20
{
21
cerr <<
"matrix bound exceeded -- row index too low in "
22
"dmatrix::operator()"
<<
"value was"
<< i;
23
ad_exit
(21);
24
}
25
if
(i>
rowmax
())
26
{
27
cerr <<
"matrix bound exceeded -- row index too high in "
28
"dmatrix::operator()"
<<
"value was"
<< i;
29
ad_exit
(22);
30
}
31
return
*(
m
+i);
32
}
33
#endif
dmatrix::operator()
dvector & operator()(int i)
Definition:
fvar.hpp:3083
dvector
Vector of double precision numbers.
Definition:
dvector.h:50
ad_exit
exitptr ad_exit
Definition:
gradstrc.cpp:53
dmatrix::rowmax
int rowmax() const
Definition:
fvar.hpp:2929
fvar.hpp
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
dmatrix::m
dvector * m
Definition:
fvar.hpp:2824
dmatrix::rowmin
int rowmin() const
Definition:
fvar.hpp:2925
Generated on Wed Sep 7 2022 00:01:27 for ADMB Documentation by
1.8.5