26 #if defined(USE_DD_STUFF)
27 # if defined(_MSC_VER)
28 extern "C" _export
void dd_newton_raphson(
int n,
double * v,
double * diag,
29 double * ldiag,
double * yy);
31 extern "C" void dd_newton_raphson(
int n,
double * v,
double * diag,
32 double * ldiag,
double * yy);
43 int mmin=m.indexmin();
44 int mmax=m.indexmax();
45 for (
int i=mmin;i<=mmax;i++)
153 int mmin=m.indexmin();
155 if (hadbad &&
id>0.0)
175 output_stream <<
norm(w1-w) <<
endl;
176 if (
norm(err)>1.e-10)
178 cout <<
"precisionerror" <<
endl;
204 int& no_converge_flag)
209 double fbest=1.e+100;
238 output_stream <<
"Newton raphson " << ii <<
" ";
286 cout <<
" fbest-fval = " << setprecision(15)
287 << fbest-fval <<
endl;
289 if (fval>fbest && maxg>1.e-10)
301 cout << fval-fbest <<
" step too large angle = " << testangle
308 cout <<
" no progress angle = " << testangle <<
endl;
317 cout <<
"inner angle = " << testangle <<
endl;
321 extra_try=extra_try+1;
324 cout << extra_try <<
endl;
342 else if(smallshrink==1)
344 else if(smallshrink==2)
346 else if(smallshrink==3)
381 for (
int i=1;i<=
usize;i++)
399 cerr <<
"Can't get positive definite Hessian in inner optimization"
Description not yet available.
Description not yet available.
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
Vector of double precision numbers.
static void get_cgradient_contribution(dvector, int)
Description not yet available.
df1_two_variable fabs(const df1_two_variable &x)
double calculate_laplace_approximation(const dvector &x, const dvector &u0, const dmatrix &Hess, const dvector &_xadjoint, const dvector &_uadjoint, const dmatrix &_Hessadjoint, function_minimizer *pmin)
Description not yet available.
void do_newton_raphson_state_space(function_minimizer *pfmin, double f_from_1, int &no_converge_flag)
static int where_are_we_flag
double norm(const d3_array &a)
Return computed norm value of a.
banded_symmetric_dmatrix * bHess
double evaluate_function(const dvector &x, function_minimizer *pfmin)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
dvector solve(const dmatrix &aa, const dvector &z)
Solve a linear system using LU decomposition.
prescientific setscientific(void)
Description not yet available.
prnstream & endl(prnstream &)
dvector solve(const banded_symmetric_dmatrix &_m, const dvector &_v)
Description not yet available.
dvector solve_trans(const lower_triangular_dmatrix &M, const dvector &y)
Description not yet available.
banded_lower_triangular_dmatrix quiet_choleski_decomp(const banded_symmetric_dmatrix &_M, int &ierr)
Description not yet available.
void initialize(void)
Description not yet available.
Description not yet available.
double colsum(const dmatrix &m, int col)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Description not yet available.
Description not yet available.
void positivize(const banded_symmetric_dmatrix &_m, double id)
Description not yet available.
Description not yet available.
dvector get_newton_raphson_info_banded(function_minimizer *pmin)
Description not yet available.
void initialize(void)
Initialze all elements of dvector to zero.
dvector & shift(int min)
Shift valid range of subscripts.
std::ostream & get_output_stream()
Description not yet available.
Description not yet available.
static void get_cHessian_contribution(dmatrix, int)
Description not yet available.
safe_choleski_solver(double id)
Description not yet available.
static int get_num_quadratic_prior(void)