Skip to content

[linalg.algs.blas1.iamax] Fix return type of vector_idx_abs_max#9140

Merged
tkoeppe merged 1 commit into
cplusplus:mainfrom
abhinavagarwal07:fix-iamax-return-type
Jun 16, 2026
Merged

[linalg.algs.blas1.iamax] Fix return type of vector_idx_abs_max#9140
tkoeppe merged 1 commit into
cplusplus:mainfrom
abhinavagarwal07:fix-iamax-return-type

Conversation

@abhinavagarwal07

Copy link
Copy Markdown
Contributor

The declarations of vector_idx_abs_max in [linalg.syn] and [linalg.algs.blas1.iamax] use extents_type (a std::extents shape type) as the return type, but the Returns clause specifies a scalar index of type size_type. Replace extents_type with size_type in all four declaration sites.

The declarations use extents_type (a std::extents shape type), but the
Returns clause specifies a scalar index of type size_type. Replace
extents_type with size_type in [linalg.syn] and [linalg.algs.blas1.iamax].
@eisenwave

Copy link
Copy Markdown
Member

@eisenwave eisenwave added the P1-Important Misapplication of paper, malformed code, internal inconsistencies label Jun 16, 2026
@tkoeppe tkoeppe requested a review from jwakely June 16, 2026 16:54
@tkoeppe tkoeppe merged commit e66aa58 into cplusplus:main Jun 16, 2026
2 checks passed
@tkoeppe

tkoeppe commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Thanks a lot!

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

Labels

P1-Important Misapplication of paper, malformed code, internal inconsistencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants