17 #if !defined (OPT_LIB)
28 "AD_LONG_INT& lmatrix::operator() (int i, int j)",
rowmin(),
rowmax(), i);
33 "AD_LONG_INT& lmatrix::operator() (int i, int j)",
rowmin(),
rowmax(), i);
35 if (j < (*
this)(i).indexmin())
38 "AD_LONG_INT& lmatrix::operator() (int i, int j)",
39 (*
this)(i).indexmin(), (*
this)(i).indexmax(), j);
41 if (j > (*
this)(i).indexmax())
44 "AD_LONG_INT& lmatrix::operator() (int i, int j)",
45 (*
this)(i).indexmin(), (*
this)(i).indexmax(), j);
47 return(*((*(
m+i)).v+j));
58 cerr <<
"matrix bound exceeded -- row index too low in "
59 "lmatrix::operator()(int, int)" <<
"\nvalue was " << i;
64 cerr <<
"matrix bound exceeded -- row index too high in "
65 "lmatrix::operator()(int, int)" <<
"\nvalue was " << i;
68 if (j<(*
this)(i).indexmin())
70 cerr <<
"matrix bound exceeded -- column index too low in "
71 "lmatrix::operator()(int, int)" <<
"\nvalue was " << j;
74 if (j>(*
this)(i).indexmax())
76 cerr <<
"matrix bound exceeded -- column index too high in "
77 "lmatrix::operator()(int, int)" <<
"\nvalue was " << j;
80 return(*((*(
m+i)).v+j));
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
#define ADMB_ARRAY_BOUNDS_ERROR(message, function, lower_bounds, upper_bounds, index)
lvector & operator()(int i)