Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00011
00012 #include "fvar.hpp"
00013
00014 #if !defined(OPT_LIB)
00015
00020 const dvar_vector& dvar_matrix::operator()(int i) const
00021 {
00022 if (i<rowmin())
00023 {
00024 cerr << "matrix bound exceeded -- row index too low in "
00025 "dvar_matrix::operator()"
00026 << "value was" << i << endl;
00027 ad_exit(21);
00028 }
00029 if (i>rowmax())
00030 {
00031 cerr << "matrix bound exceeded -- row index too high in "
00032 "dvar_matrix::operator()"
00033 << "value was" << i << endl;
00034 ad_exit(22);
00035 }
00036 return m[i];
00037 }
00038 #endif