|
#define | min2(a, b) ((a) <= (b) ? (a) : (b)) |
|
#define | max2(a, b) ((a) >= (b) ? (a) : (b)) |
|
#define | max3(a, b, c) max2(max2((a), (b)), (c)); |
|
#define | USES_MINIMIZER float64_t a, d, gamma, theta, p, q, r, s; |
|
#define | CUBIC_MINIMIZER(cm, u, fu, du, v, fv, dv) |
|
#define | CUBIC_MINIMIZER2(cm, u, fu, du, v, fv, dv, xmin, xmax) |
|
#define | QUARD_MINIMIZER(qm, u, fu, du, v, fv) |
|
#define | QUARD_MINIMIZER2(qm, u, du, v, dv) |
|
#define | fsigndiff(x, y) (*(x) * (*(y) / fabs(*(y))) < 0.) |
|
|
static int32_t | line_search_backtracking (int32_t n, float64_t *x, float64_t *f, float64_t *g, float64_t *s, float64_t *stp, const float64_t *xp, const float64_t *gp, float64_t *wa, callback_data_t *cd, const lbfgs_parameter_t *param) |
|
static int32_t | line_search_backtracking_owlqn (int32_t n, float64_t *x, float64_t *f, float64_t *g, float64_t *s, float64_t *stp, const float64_t *xp, const float64_t *gp, float64_t *wp, callback_data_t *cd, const lbfgs_parameter_t *param) |
|
static int32_t | line_search_morethuente (int32_t n, float64_t *x, float64_t *f, float64_t *g, float64_t *s, float64_t *stp, const float64_t *xp, const float64_t *gp, float64_t *wa, callback_data_t *cd, const lbfgs_parameter_t *param) |
|
static int32_t | update_trial_interval (float64_t *x, float64_t *fx, float64_t *dx, float64_t *y, float64_t *fy, float64_t *dy, float64_t *t, float64_t *ft, float64_t *dt, const float64_t tmin, const float64_t tmax, int32_t *brackt) |
|
static float64_t | owlqn_x1norm (const float64_t *x, const int32_t start, const int32_t n) |
|
static void | owlqn_pseudo_gradient (float64_t *pg, const float64_t *x, const float64_t *g, const int32_t n, const float64_t c, const int32_t start, const int32_t end) |
|
static void | owlqn_project (float64_t *d, const float64_t *sign, const int32_t start, const int32_t end) |
|
void | lbfgs_parameter_init (lbfgs_parameter_t *param) |
|
int32_t | lbfgs (int32_t n, float64_t *x, float64_t *ptr_fx, lbfgs_evaluate_t proc_evaluate, lbfgs_progress_t proc_progress, void *instance, lbfgs_parameter_t *_param, lbfgs_adjust_step_t proc_adjust_step) |
|