Skip to content

Conversation

@jishnub
Copy link
Member

@jishnub jishnub commented Apr 28, 2025

This would make these operations work with immutable matrices as well. The Hermitian wrapper ensures that the result has a real diagonal.

Copy link
Member

@dkarrasch dkarrasch left a comment

Choose a reason for hiding this comment

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

Agreed. Anyone reading from the parent directly must be careful anyway.

@codecov
Copy link

codecov bot commented Apr 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.75%. Comparing base (95703b5) to head (3749bbb).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1321      +/-   ##
==========================================
+ Coverage   93.73%   93.75%   +0.01%     
==========================================
  Files          34       34              
  Lines       15743    15734       -9     
==========================================
- Hits        14757    14751       -6     
+ Misses        986      983       -3     

☔ 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 merged commit 3396f0b into master Apr 28, 2025
4 checks passed
@jishnub jishnub deleted the jishnub/hermpowreal branch April 28, 2025 09:24
@araujoms
Copy link
Collaborator

Shouldn't this be done with the other matrix functions as well for consistency?

@jishnub
Copy link
Member Author

jishnub commented Apr 29, 2025

Are there ones where such a change is necessary? In general, yes, we want the wrappers to work with immutable parents as well.

@araujoms
Copy link
Collaborator

sincos also does it. I was sure that sqrt and log also did but it seems that somebody already removed it.

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.

3 participants