Skip to content

Fix stride(0) ordering, bound incx, reject incx == 0 and deduce the CBLAS index type - #334

Open
georgemalerbo wants to merge 5 commits into
kokkos:mainfrom
georgemalerbo:wrap_scal_review_fixes
Open

Fix stride(0) ordering, bound incx, reject incx == 0 and deduce the CBLAS index type#334
georgemalerbo wants to merge 5 commits into
kokkos:mainfrom
georgemalerbo:wrap_scal_review_fixes

Conversation

@georgemalerbo

Copy link
Copy Markdown

Applies what @mhoemmen suggested in #331 x.stride(0) is now only called after x.is_strided() is confirmed, incx is bounded by the index type's max, and incx == 0 returns false so generic fallback handles it.

Also implemented the deduction of the BLAS integer index type discussed in #328: a variadic function template declaration, used only inside decltype, extracts the type of cblas_dscal's first parameter

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.

2 participants