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
imat_a.cpp
Go to the documentation of this file.
1
5
#include "
fvar.hpp
"
6
12
imatrix::imatrix
(
const
imatrix_position
& position)
13
{
14
if
(position.
row_min
!= position.
lb
.
indexmin
()
15
|| position.
row_max
!= position.
lb
.
indexmax
()
16
|| position.
row_min
!= position.
ub
.
indexmin
()
17
|| position.
row_max
!= position.
ub
.
indexmax
())
18
{
19
cerr <<
"Incompatible array bounds"
20
<<
" in imatrix::imatrix(const imatrix_position&)\n"
;
21
ad_exit
(1);
22
}
23
24
allocate
(position.
row_min
, position.
row_max
);
25
26
#ifdef DIAG
27
cerr <<
"Created a imatrix with adress "
<< farptr_tolong(
m
)<<
"\n"
;
28
#endif
29
30
for
(
int
i =
rowmin
(); i <=
rowmax
(); ++i)
31
{
32
elem
(i).
allocate
(position.
lb
(i), position.
ub
(i));
33
}
34
}
imatrix::m
ivector * m
Definition:
imatrix.h:74
imatrix::elem
ivector & elem(int i)
Definition:
imatrix.h:233
imatrix::allocate
void allocate(void)
Does not allocate, but initializes imatrix members.
Definition:
imat.cpp:138
imatrix_position::ub
ivector ub
Definition:
imatrix.h:54
imatrix_position
Description not yet available.
Definition:
imatrix.h:48
imatrix::rowmin
int rowmin() const
Definition:
imatrix.h:146
ad_exit
exitptr ad_exit
Definition:
gradstrc.cpp:53
imatrix_position::lb
ivector lb
Definition:
imatrix.h:53
imatrix_position::row_min
int row_min
Definition:
imatrix.h:51
fvar.hpp
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
imatrix_position::row_max
int row_max
Definition:
imatrix.h:52
ivector::indexmin
int indexmin() const
Definition:
ivector.h:99
ivector::indexmax
int indexmax() const
Definition:
ivector.h:104
imatrix::imatrix
imatrix(void)
Default constructor.
Definition:
imat.cpp:238
imatrix::rowmax
int rowmax() const
Definition:
imatrix.h:150
ivector::allocate
void allocate(const ad_integer &ncl, const index_type &ncu)
Allocate vector of integers with dimension [_ncl to _nch].
Definition:
indextyp.cpp:488
Generated on Wed Sep 7 2022 00:01:29 for ADMB Documentation by
1.8.5