From 890d46d8a2c1e02dcc458de1108fcbb68fb12875 Mon Sep 17 00:00:00 2001 From: zaikunzhang Date: Sun, 24 Mar 2024 20:34:10 +0800 Subject: [PATCH] 240324.203410.HKT c: fix comment on ctol --- c/include/prima/prima.h | 2 +- fortran/cobyla/cobylb.f90 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c/include/prima/prima.h b/c/include/prima/prima.h index 73042fe32a..bc8ce3c729 100644 --- a/c/include/prima/prima.h +++ b/c/include/prima/prima.h @@ -225,7 +225,7 @@ typedef struct { // N.B.: 1. ctol is absolute, not relative. // 2. ctol is used for choosing the returned x. It does not affect the iterations of the algorithm. // Default: NaN, which will be interpreted in Fortran as not present, in which case a default value - // of machine epsilon will be used. + // of sqrt(machine epsilon) will be used. double ctol; // data: user data, will be passed through the objective function callback diff --git a/fortran/cobyla/cobylb.f90 b/fortran/cobyla/cobylb.f90 index 484ba32a3c..6c5bb9d9cb 100644 --- a/fortran/cobyla/cobylb.f90 +++ b/fortran/cobyla/cobylb.f90 @@ -17,7 +17,7 @@ module cobylb_mod ! ! Started: July 2021 ! -! Last Modified: Sunday, March 24, 2024 PM05:17:30 +! Last Modified: Sunday, March 24, 2024 PM08:32:31 !--------------------------------------------------------------------------------------------------! implicit none