Skip to content

[linalg.algs.blas2.rank1,linalg.algs.blas2.symherrank1] Restore missing arguments in P3371R5 updating overloads#1

Open
abhinavagarwal07 wants to merge 2 commits into
mainfrom
fix-blas2-updating-overload-args
Open

[linalg.algs.blas2.rank1,linalg.algs.blas2.symherrank1] Restore missing arguments in P3371R5 updating overloads#1
abhinavagarwal07 wants to merge 2 commits into
mainfrom
fix-blas2-updating-overload-args

Conversation

@abhinavagarwal07

@abhinavagarwal07 abhinavagarwal07 commented Apr 26, 2026

Copy link
Copy Markdown
Owner

The detailed wording for two updating overloads introduced by P3371R5 is inconsistent with the synopsis and surrounding effects wording.

  • [linalg.algs.blas2.rank1]matrix_rank_1_update_c non-ExecutionPolicy Effects codeblock dispatches to the 3-arg overwriting overload, dropping E.
  • [linalg.algs.blas2.symherrank1] — updating hermitian_matrix_rank_1_update detailed declaration drops in-vector InVec, in-matrix InMat, Scalar alpha, and InMat E, even though Effects compute A = E + alpha x x^H and Remarks state "A may alias E".

…ects

The non-ExecutionPolicy codeblock dispatches to the overwriting
3-argument matrix_rank_1_update, dropping the InMat E parameter
and computing A = x conj(y)^T instead of the specified
A = E + x conj(y)^T. The ExecutionPolicy branch already passes E.
The detailed declaration drops in-vector InVec, in-matrix InMat,
Scalar alpha, and InMat E, even though the Effects compute
A = E + alpha x x^H and the Remarks state "A may alias E".
Match the synopsis.
@abhinavagarwal07 abhinavagarwal07 force-pushed the fix-blas2-updating-overload-args branch from 18b6d41 to 8c2557d Compare April 26, 2026 23:23
@abhinavagarwal07 abhinavagarwal07 changed the title [linalg.algs.blas2] Restore missing arguments in P3371R5 updating overloads [linalg.algs.blas2.rank1,linalg.algs.blas2.symherrank1] Restore missing arguments in P3371R5 updating overloads Apr 26, 2026
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