Skip to content

Unaliasing and short-circuiting in copytrito! #1287

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 3 commits into from
Apr 22, 2025

Conversation

jishnub
Copy link
Member

@jishnub jishnub commented Apr 14, 2025

The LAPACK function lacpy! seems to handle aliasing correctly already, but since the LAPACK documentation doesn't expect the output arguments to be aliased, it's best if we carry out the unaliasing by ourselves.

I've also added a quick return criterion if the two matrices are identical, in which case there is nothing to copy. This would be useful in copying elements between a triangular/symmetric matrix and its parent.

Copy link

codecov bot commented Apr 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.04%. Comparing base (830ea2f) to head (e902661).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1287   +/-   ##
=======================================
  Coverage   92.03%   92.04%           
=======================================
  Files          34       34           
  Lines       15499    15505    +6     
=======================================
+ Hits        14265    14271    +6     
  Misses       1234     1234           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jishnub jishnub force-pushed the jishnub/copytrito_quickreturn branch from 1f4f915 to e902661 Compare April 14, 2025 17:35
@jishnub jishnub requested a review from dkarrasch April 16, 2025 05:44
@jishnub jishnub force-pushed the jishnub/copytrito_quickreturn branch from e902661 to 6bf623a Compare April 20, 2025 07:00
@jishnub
Copy link
Member Author

jishnub commented Apr 22, 2025

Gentle bump

@jishnub jishnub merged commit 27de9e9 into master Apr 22, 2025
1 of 2 checks passed
@jishnub jishnub deleted the jishnub/copytrito_quickreturn branch April 22, 2025 10:14
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