From ef6e31788ec6b50e01f043252aa7ede87f86664c Mon Sep 17 00:00:00 2001 From: zaikunzhang Date: Fri, 19 Jan 2024 01:08:45 +0800 Subject: [PATCH] 240119.010845.HKT revise `c/prima.c` regarding the initialization of `npt` and `maxfun` --- c/prima.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c/prima.c b/c/prima.c index 7933c5dace..f700f0a692 100644 --- a/c/prima.c +++ b/c/prima.c @@ -14,12 +14,12 @@ int prima_init_options(prima_options_t *options) if (options) { memset(options, 0, sizeof(prima_options_t)); - options->maxfun = -1;// interpreted as MAXFUN_DIM_DFT*n + options->maxfun = 0; // interpreted as maxfun taking the default value MAXFUN_DIM_DFT*n options->rhobeg = 1.0; options->rhoend = 1e-6; options->iprint = PRIMA_MSG_NONE; options->ftarget = -INFINITY; - options->npt = -1;// interpreted as 2*n+1 + options->npt = 0; // interpreted as npt taking the default value 2*n+1 return 0; } else