Skip to content

Conversation

@OmarManzoor
Copy link
Contributor

Reference Issues/PRs

Follow up of #25775

What does this implement/fix? Explain your changes.

  • Specifies const definition for the required pointer parameters in relevant _cython_blas functions.
  • Specifies const definition for required pointer parameters in _cd_fast functions abs_max and diff_abs_max
  • Removes the [-Wincompatible-pointer-types-discards-qualifiers] warnings that were raised as a result of MAINT Replaces cnp.ndarray with memory views in _cd_fast #25775

Any other comments?

CC @jjerphan @jeremiedbb

@jeremiedbb
Copy link
Member

There are a few BLAS routines where you did not add the const keyword, even if it could be added like asum and ger for instance. Is there a reason for that ?

@OmarManzoor
Copy link
Contributor Author

There are a few BLAS routines where you did not add the const keyword, even if it could be added like asum and ger for instance. Is there a reason for that ?

I only changed the functions and the parameters which were needed to remove the warnings from cd_fast.

@jeremiedbb
Copy link
Member

I only changed the functions and the parameters which were needed to remove the warnings from cd_fast.

I think it's worth unifying the whole cython_blas module at once

@OmarManzoor
Copy link
Contributor Author

I only changed the functions and the parameters which were needed to remove the warnings from cd_fast.

I think it's worth unifying the whole cython_blas module at once

Sure!

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @OmarManzoor

Copy link
Member

@jjerphan jjerphan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jjerphan jjerphan merged commit 131642b into scikit-learn:main Mar 9, 2023
@OmarManzoor OmarManzoor deleted the cython_update_blas_signatures branch March 9, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants