Revision 1110 trunk/src/df1b2separable/df1b2nv1.cpp
df1b2nv1.cpp (revision 1110)  

2  2 
* $Id$ 
3  3 
* 
4  4 
* Author: David Fournier 
5 
* Copyright (c) 20082012 Regents of the University of California


5 
* Copyright (c) 20082012 Regents of the University of California 

6  6 
*/ 
7  7 
/** 
8  8 
* \file 
...  ...  
25  25 
* Description not yet available. 
26  26 
* \param 
27  27 
*/ 
28 
df1b2_init_bounded_number& df1b2_init_bounded_number_vector::operator [] (int i)


29 
{


28 
df1b2_init_bounded_number& df1b2_init_bounded_number_vector::operator [] (int i) 

29 
{ 

30  30 
if (i < indexmin()  i > indexmax()) 
31  31 
{ 
32  32 
ADMB_ARRAY_BOUNDS_ERROR("Index out of range", "df1b2_init_bounded_number& df1b2_init_bounded_number_vector::operator [] (int i)", indexmin(), indexmax(), i); 
...  ...  
38  38 
* Description not yet available. 
39  39 
* \param 
40  40 
*/ 
41 
df1b2_init_bounded_number& df1b2_init_bounded_number_vector::operator () (int i)


42 
{


41 
df1b2_init_bounded_number& df1b2_init_bounded_number_vector::operator () (int i) 

42 
{ 

43  43 
if (i < indexmin()  i > indexmax()) 
44  44 
{ 
45  45 
ADMB_ARRAY_BOUNDS_ERROR("Index out of range", "df1b2_init_bounded_number& df1b2_init_bounded_number_vector::operator () (int i)", indexmin(), indexmax(), i); 
...  ...  
136  136 
int mmax=indexmax(); 
137  137 
if (s.indexmin()!=mmin  s.indexmax() != mmax) 
138  138 
{ 
139 
cerr << "non matching vector bounds in"


139 
cerr << "non matching vector bounds in" 

140  140 
" init_number_vector::set_scalefactor" << endl; 
141  141 
ad_exit(1); 
142  142 
} 
...  ...  
174  174 
int mmax=indexmax(); 
175  175 
if (s.indexmin()!=mmin  s.indexmax() != mmax) 
176  176 
{ 
177 
cerr << "non matching vector bounds in"


177 
cerr << "non matching vector bounds in" 

178  178 
" init_bounded_number_vector::set_scalefactor" << endl; 
179  179 
ad_exit(1); 
180  180 
} 
...  ...  
205  205 
* Description not yet available. 
206  206 
* \param 
207  207 
*/ 
208 
df1b2_init_number& df1b2_init_number_vector::operator [] (int i)


209 
{


208 
df1b2_init_number& df1b2_init_number_vector::operator [] (int i) 

209 
{ 

210  210 
if (i < indexmin()  i > indexmax()) 
211  211 
{ 
212  212 
ADMB_ARRAY_BOUNDS_ERROR("Index out of range", "df1b2_init_number& df1b2_init_number_vector::operator [] (int i)", indexmin(), indexmax(), i); 
...  ...  
218  218 
* Description not yet available. 
219  219 
* \param 
220  220 
*/ 
221 
df1b2_init_number& df1b2_init_number_vector::operator () (int i)


222 
{


221 
df1b2_init_number& df1b2_init_number_vector::operator () (int i) 

222 
{ 

223  223 
if (i < indexmin()  i > indexmax()) 
224  224 
{ 
225  225 
ADMB_ARRAY_BOUNDS_ERROR("Index out of range", "df1b2_init_number& df1b2_init_number_vector::operator () (int i)", indexmin(), indexmax(), i); 
Also available in: Unified diff