63 for (
int i=mmin;i<=mmax;i++)
78 double* psymbds1ii = symbds(1).get_v() + ii;
79 double* psymbds2ii = symbds(2).get_v() + ii;
81 for (
int i=mmin;i<=mmax;i++)
83 *psymbds1ii =
minb - pvai->
x;
84 *psymbds2ii =
maxb - pvai->
x;
100 for (
int i=rmin;i<=rmax;i++)
104 for (
int j=cmin;j<=cmax;j++)
120 for (
int i=rmin;i<=rmax;i++)
124 for (
int j=cmin;j<=cmax;j++)
134 const int& _ii,
const double& s,
const dvector& diag)
137 (*this)+=diag(ii)*ndev(ii);
142 double eps,
double sig)
144 double& jac=(
double&) _jac;
168 y=0.9*d+0.1*d*z/(1.+z);
169 y1=0.9*d+0.1*d*z1/(1.+z1);
187 y1=-mult*(eps+1.e-6);
192 y=0.9*d+0.1*d*z/(1.+z);
193 y1=0.9*d+0.1*d*z1/(1.+z1);
203 const dvector& ndev,
const int& _ii,
const double& s,
const dvector& diag)
211 const int& _ii,
const double& s,
const dvector& diag)
216 for (
int i=mmin;i<=mmax;i++)
218 (*this)(i)+=diag(ii)*ndev(ii);
224 const dvector& ndev,
const int& _ii,
const double& s,
const dvector& diag)
229 for (
int i=mmin;i<=mmax;i++)
260 const int& _ii,
const double& s,
const dvector& diag)
265 for (
int i=rmin;i<=rmax;i++)
269 for (
int j=cmin;j<=cmax;j++)
271 (*this)(i,j)+=diag(ii)*ndev(ii);
278 const int& _ii,
const double& s,
const dvector& diag)
283 for (
int i=rmin;i<=rmax;i++)
287 for (
int j=cmin;j<=cmax;j++)
297 const int& _ii,
const double& s,
const dvector& diag)
302 for (
int k=smin;k<=smax;k++)
306 for (
int i=rmin;i<=rmax;i++)
310 for (
int j=cmin;j<=cmax;j++)
312 (*this)(k,i,j)+=diag(ii)*ndev(ii);
324 for (
int k=smin;k<=smax;k++)
328 for (
int i=rmin;i<=rmax;i++)
332 for (
int j=cmin;j<=cmax;j++)
334 (*this)(k,i,j)+=ndev(ii);
350 const dvector& ndev,
const int& _ii)
363 for (
int i=mmin;i<=mmax;i++)
365 (*this)(i)+=ndev(ii);
376 for (
int i=rmin;i<=rmax;i++)
380 for (
int j=cmin;j<=cmax;j++)
382 (*this)(i,j)+=ndev(ii);
389 const dvector& ndev,
const int& _ii)
394 for (
int i=rmin;i<=rmax;i++)
398 for (
int j=cmin;j<=cmax;j++)
400 (*this)(i,j)+=ndev(ii);
407 const dvector& _jac,
const int& _ii)
418 for (
int i=mmin;i<=mmax;i++)
420 y(ii)=
tan(hpi*tmp(i));
421 jac(ii) = 1./(hpi*(1.0+
square(y(ii))));
433 for (
int k=smin;k<=smax;k++)
437 for (
int i=rmin;i<=rmax;i++)
441 for (
int j=cmin;j<=cmax;j++)
d3_array tan(const d3_array &arr3)
Returns d3_array results with computed tan from elements in arr3.
virtual void set_simulation_bounds(const dmatrix &symbds, const int &ii)
virtual void add_value(const dvector &, const dvector &, const int &, const double &, const dvector &)
virtual void set_simulation_bounds(const dmatrix &symbds, const int &ii)
int withinbound(int lb, int n, int ub)
Vector of double precision numbers.
virtual void get_jacobian(const dvector &, const dvector &, const int &)
virtual void get_jacobian(const dvector &, const dvector &, const int &)
friend dvector value(const dvar_vector &v1)
Description not yet available.
virtual void get_jacobian(const dvector &, const dvector &, const int &)
virtual void add_value(const dvector &, const dvector &, const int &, const double &, const dvector &)
static void set_all_simulation_bounds(const dmatrix &symbds)
virtual void add_value(const dvector &, const dvector &, const int &, const double &, const dvector &)
virtual void set_simulation_bounds(const dmatrix &symbds, const int &ii)
Holds the data for the prevariable class.
virtual void set_simulation_bounds(const dmatrix &symbds, const int &ii)=0
virtual void set_value_inv(const dvector &x, const int &ii)
virtual void add_value(const dvector &, const dvector &, const int &, const double &, const dvector &)
Description not yet available.
virtual void set_simulation_bounds(const dmatrix &symbds, const int &ii)
Description not yet available.
friend double & value(const prevariable &v1)
static int num_initial_params
virtual void set_simulation_bounds(const dmatrix &symbds, const int &ii)
virtual void add_value(const dvector &, const dvector &, const int &, const double &, const dvector &)
double new_value_mc(const double &_jac, double x, double min, double max, double eps, double sig)
virtual void get_jacobian(const dvector &, const dvector &, const int &)
virtual void set_simulation_bounds(const dmatrix &symbds, const int &ii)
dvector value(const df1_one_vector &v)
virtual void set_simulation_bounds(const dmatrix &symbds, const int &ii)
virtual void add_value(const dvector &, const dvector &, const int &, const double &, const dvector &)
double square(const double value)
Return square of value; constant object.
virtual void add_value(const dvector &, const dvector &, const int &, const double &, const dvector &)
double x
< value of the variable
static adlist_ptr varsptr
virtual void get_jacobian(const dvector &, const dvector &, const int &)
virtual void get_jacobian(const dvector &, const dvector &, const int &)