Skip to content

Rename check functions in dpnp_utils_linalg.py #1807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 29, 2024

Conversation

vlad-perevezentsev
Copy link
Collaborator

@vlad-perevezentsev vlad-perevezentsev commented Apr 29, 2024

This PR suggests renaming all check functions (check_2d(), check_stacked_2d() and check_stacked_square()) and updating their doctrings to align their logic according to the comment from #1792 .

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you filing the PR as a draft?

@vlad-perevezentsev vlad-perevezentsev self-assigned this Apr 29, 2024
@vlad-perevezentsev vlad-perevezentsev changed the title Rename checks functions in dpnp_utils_linalg.py Rename check functions in dpnp_utils_linalg.py Apr 29, 2024
Copy link
Contributor

github-actions bot commented Apr 29, 2024

View rendered docs @ https://intelpython.github.io/dpnp/index.html

Copy link
Contributor

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

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

Thank you @vlad-perevezentsev, it's a nice change.

@antonwolfy antonwolfy merged commit 6220539 into master Apr 29, 2024
@antonwolfy antonwolfy deleted the update_linalg_check_funcs branch April 29, 2024 18:02
github-actions bot added a commit to antonwolfy/dpnp that referenced this pull request Apr 30, 2024
* Add check_2d to __all__ for dpnp_utils_linalg.py

* Rename check_2d to assert_2d

* Rename check_stacked_2d to assert_stacked_2d

* Rename check_stacked_square to assert_stacked_square

---------

Co-authored-by: Anton <[email protected]> 6220539
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