Revision 1490 trunk/src/df1b2separable/df1b2f24.cpp
df1b2f24.cpp (revision 1490)  

98  98 
} 
99  99 
} 
100  100  
101 
void set_value(const df1b2matrix& _m,const init_df1b2vector& _v, const int& _ii, 

102 
double fmin,double fmax,const df1b2variable& fpen,double s) 

103 
{ 

104 
ADUNCONST(int,ii) 

105 
ADUNCONST(df1b2matrix,m) 

106 
ADUNCONST(init_df1b2vector,v) 

107 
int min=m.indexmin(); 

108 
int max=m.indexmax(); 

109 
for (int i=min;i<=max;i++) 

110 
{ 

111 
int cmin=m(i).indexmin(); 

112 
int cmax=m(i).indexmax(); 

113 
for (int j=cmin;j<=cmax;j++) 

114 
{ 

115 
m(i,j)=boundp(v(ii++),fmin,fmax,fpen,s); 

116 
} 

117 
} 

118 
} 

119  
101  120 
/** 
102  121 
* Description not yet available. 
103  122 
* \param 
...  ...  
128  147 
} 
129  148 
} 
130  149 
} 
131 
::set_value(*this,x,ii,minb,maxb,pen); 

150 
if (scalefactor==0.0) 

151 
{ 

152 
::set_value(*this,x,ii,minb,maxb,pen); 

153 
} 

154 
else 

155 
{ 

156 
::set_value(*this,x,ii,minb,maxb,pen,scalefactor); 

157 
} 

132  158 
} 
133  159  
134  160 
/** 
...  ...  
154  180 
} 
155  181 
} 
156  182  
183  
184 
void set_value(const df1b2_init_bounded_matrix & _v,const dvector& x, 

185 
const int& _ii,double fmin,double fmax,double s) 

186 
{ 

187 
ADUNCONST(int,ii) 

188 
ADUNCONST(df1b2_init_bounded_matrix,v) 

189 
double fpen=0.0; 

190 
int mmin=v.indexmin(); 

191 
int mmax=v.indexmax(); 

192 
for (int i=mmin;i<=mmax;i++) 

193 
{ 

194 
int cmin=v(i).indexmin(); 

195 
int cmax=v(i).indexmax(); 

196 
for (int j=cmin;j<=cmax;j++) 

197 
{ 

198 
v(i,j)=boundp(x(ii++),fmin,fmax,fpen,s); 

199 
} 

200 
} 

201 
} 

202  
157  203 
/** 
158  204 
* Description not yet available. 
159  205 
* \param 
Also available in: Unified diff