Skip to content

sskewsyr2k: Fix formula comment#1311

Closed
jschueller wants to merge 1 commit into
Reference-LAPACK:masterfrom
jschueller:skewsyr2k
Closed

sskewsyr2k: Fix formula comment#1311
jschueller wants to merge 1 commit into
Reference-LAPACK:masterfrom
jschueller:skewsyr2k

Conversation

@jschueller

Copy link
Copy Markdown
Contributor

dskewsyr2k.f:303 / sskewsyr2k.f:303 — Comment describes wrong sign pattern

! Form  C := alpha*A*B**T + alpha*B*A**T + C.

The documented operation is:

C := -alpha*A*B**T + alpha*B*A**T + beta*C

The comment is missing the negation on the first term. The actual code at lines 320-322 correctly computes -A(I,L)*TEMP1 + B(I,L)*TEMP2 with the negation, but the misleading comment could cause confusion during maintenance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant