Skip to content
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

Add generic methods for transpose and transpose! #1937

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fingolfin
Copy link
Member

No description provided.

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 70.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 88.20%. Comparing base (747df7d) to head (58c57fb).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/Matrix.jl 70.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1937      +/-   ##
==========================================
- Coverage   88.21%   88.20%   -0.01%     
==========================================
  Files         119      119              
  Lines       30384    30394      +10     
==========================================
+ Hits        26803    26809       +6     
- Misses       3581     3585       +4     

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

return x
end
# we have no generic way to change the dimensions of x, so instead we
# delegate to the two argument version of transpose!
Copy link
Member Author

Choose a reason for hiding this comment

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

Tests fails because in Nemo some transpose! methods with just one argument only work on square matrices.

Perhaps that the right decision, and I should match it here, and just throw an error in that case, too? Perhaps a bit more helpful one, but an error nevertheless.

Or perhaps the Nemo methods should be made more general.

Any thoughts on this, anyone?

Copy link
Member

Choose a reason for hiding this comment

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

I never missed it for non-square matrices, but maybe @fieker has opinion/wishes?

Copy link
Contributor

Choose a reason for hiding this comment

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

if it was missing - how can there be a test for it? I never used inplace transpose on non-square matrices. i do understand that this is possible (in flint) and an interesting research problem....

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