Skip to content

Commit f2d0687

Browse files
committed
250814.073928.CST [skip ci] add a comment about OUTPROD
1 parent abe1fbd commit f2d0687

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

fortran/bobyqa/rescue.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module rescue_mod
1818
!
1919
! Started: February 2022
2020
!
21-
! Last Modified: Thursday, March 14, 2024 PM01:18:04
21+
! Last Modified: Thu 14 Aug 2025 07:34:53 AM CST
2222
!--------------------------------------------------------------------------------------------------!
2323

2424
implicit none
@@ -769,6 +769,7 @@ subroutine updateh_rsc(knew, beta, vlag_in, bmat, zmat, info)
769769
v1 = (alpha * vlag(npt + 1:npt + n) - tau * hcol(npt + 1:npt + n)) / denom
770770
v2 = (-beta * hcol(npt + 1:npt + n) - tau * vlag(npt + 1:npt + n)) / denom
771771
bmat = bmat + outprod(v1, vlag) + outprod(v2, hcol) !call r2update(bmat, ONE, v1, vlag, ONE, v2, hcol)
772+
! N.B.: The use of OUTPROD is expensive memory-wise, but it is not our concern in this implementation.
772773
! Numerically, the update above does not guarantee BMAT(:, NPT+1 : NPT+N) to be symmetric.
773774
call symmetrize(bmat(:, npt + 1:npt + n))
774775

fortran/bobyqa/update.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module update_bobyqa_mod
88
!
99
! Started: February 2022
1010
!
11-
! Last Modified: Friday, March 15, 2024 PM12:15:35
11+
! Last Modified: Thu 14 Aug 2025 07:34:12 AM CST
1212
!--------------------------------------------------------------------------------------------------!
1313

1414
implicit none
@@ -146,6 +146,7 @@ subroutine updateh(knew, kopt, d, xpt, bmat, zmat, info)
146146
v1 = (alpha * vlag(npt + 1:npt + n) - tau * hcol(npt + 1:npt + n)) / denom
147147
v2 = (-beta * hcol(npt + 1:npt + n) - tau * vlag(npt + 1:npt + n)) / denom
148148
bmat = bmat + outprod(v1, vlag) + outprod(v2, hcol) !call r2update(bmat, ONE, v1, vlag, ONE, v2, hcol)
149+
! N.B.: The use of OUTPROD is expensive memory-wise, but it is not our concern in this implementation.
149150
! Numerically, the update above does not guarantee BMAT(:, NPT+1 : NPT+N) to be symmetric.
150151
call symmetrize(bmat(:, npt + 1:npt + n))
151152

fortran/cobyla/update.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module update_cobyla_mod
88
!
99
! Started: July 2021
1010
!
11-
! Last Modified: Monday, August 07, 2023 AM03:53:59
11+
! Last Modified: Thu 14 Aug 2025 07:34:04 AM CST
1212
!--------------------------------------------------------------------------------------------------!
1313

1414
implicit none
@@ -104,6 +104,7 @@ subroutine updatexfc(jdrop, constr, cpen, cstrv, d, f, conmat, cval, fval, sim,
104104

105105
sim_old = sim
106106
simi_old = simi
107+
! N.B.: The use of OUTPROD is expensive memory-wise, but it is not our concern in this implementation.
107108
if (jdrop <= n) then
108109
sim(:, jdrop) = d
109110
simi_jdrop = simi(jdrop, :) / inprod(simi(jdrop, :), d)

fortran/common/linalg.f90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module linalg_mod
3939
!
4040
! Started: July 2020
4141
!
42-
! Last Modified: Sunday, April 21, 2024 PM03:49:40
42+
! Last Modified: Thu 14 Aug 2025 07:36:47 AM CST
4343
!--------------------------------------------------------------------------------------------------!
4444

4545
implicit none
@@ -222,6 +222,7 @@ subroutine r1(A, alpha, x, y)
222222
! Calculation starts !
223223
!====================!
224224

225+
! N.B.: The use of OUTPROD is expensive memory-wise, but it is not our concern in this implementation.
225226
A = A + outprod(alpha * x, y)
226227
!A = A + alpha * outprod(x, y)
227228

@@ -318,6 +319,7 @@ subroutine r2(A, alpha, x, y, beta, u, v)
318319
! Calculation starts !
319320
!====================!
320321

322+
! N.B.: The use of OUTPROD is expensive memory-wise, but it is not our concern in this implementation.
321323
A = A + outprod(alpha * x, y) + outprod(beta * u, v)
322324
!A = A + (alpha * outprod(x, y) + beta * outprod(u, v))
323325

fortran/common/powalg.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module powalg_mod
2121
!
2222
! Started: July 2020
2323
!
24-
! Last Modified: Wed 06 Aug 2025 06:54:55 AM CST
24+
! Last Modified: Thu 14 Aug 2025 07:36:04 AM CST
2525
!--------------------------------------------------------------------------------------------------!
2626

2727
implicit none
@@ -1250,6 +1250,7 @@ subroutine updateh(knew, kref, d, xpt, idz, bmat, zmat, info)
12501250
v1 = (alpha * vlag(npt + 1:npt + n) - tau * hcol(npt + 1:npt + n)) / denom
12511251
v2 = (-beta * hcol(npt + 1:npt + n) - tau * vlag(npt + 1:npt + n)) / denom
12521252
bmat = bmat + outprod(v1, vlag) + outprod(v2, hcol) !call r2update(bmat, ONE, v1, vlag, ONE, v2, hcol)
1253+
! N.B.: The use of OUTPROD is expensive memory-wise, but it is not our concern in this implementation.
12531254
! Numerically, the update above does not guarantee BMAT(:, NPT+1 : NPT+N) to be symmetric.
12541255
call symmetrize(bmat(:, npt + 1:npt + n))
12551256

fortran/common/shiftbase.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module shiftbase_mod
99
!
1010
! Started: July 2020
1111
!
12-
! Last Modified: Thursday, April 11, 2024 AM10:57:22
12+
! Last Modified: Thu 14 Aug 2025 07:35:47 AM CST
1313
!--------------------------------------------------------------------------------------------------!
1414

1515
implicit none

fortran/uobyqa/update.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module update_uobyqa_mod
88
!
99
! Started: July 2020
1010
!
11-
! Last Modified: Thursday, April 11, 2024 PM06:37:06
11+
! Last Modified: Thu 14 Aug 2025 07:37:19 AM CST
1212
!--------------------------------------------------------------------------------------------------!
1313

1414
implicit none
@@ -85,6 +85,7 @@ subroutine update(knew, d, f, moderr, kopt, fval, pl, pq, xpt)
8585
pl(:, knew) = pl(:, knew) / vlag(knew)
8686
plnew = pl(:, knew)
8787
pl = pl - outprod(plnew, vlag)
88+
! N.B.: The use of OUTPROD is expensive memory-wise, but it is not our concern in this implementation.
8889
pl(:, knew) = plnew
8990

9091
! Update the quadratic model.

0 commit comments

Comments
 (0)