Skip to content

Commit

Permalink
240119.010845.HKT revise c/prima.c regarding the initialization of …
Browse files Browse the repository at this point in the history
…`npt` and `maxfun`
  • Loading branch information
zaikunzhang committed Jan 18, 2024
1 parent d3b7129 commit ef6e317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c/prima.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef6e317

Please sign in to comment.