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 Base.keys(::MatElem) #1906

Merged
merged 3 commits into from
Nov 15, 2024
Merged

Add Base.keys(::MatElem) #1906

merged 3 commits into from
Nov 15, 2024

Conversation

lgoettgens
Copy link
Collaborator

This is needed to e.g. do a findall(f, ::MatElem) in julia 1.10, and thus is needed for the 1.10 tests on oscar-system/Oscar.jl#4322.

Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.17%. Comparing base (9d38ede) to head (836d83d).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1906   +/-   ##
=======================================
  Coverage   88.16%   88.17%           
=======================================
  Files         120      120           
  Lines       30296    30297    +1     
=======================================
+ Hits        26711    26714    +3     
+ Misses       3585     3583    -2     

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

@@ -567,6 +567,7 @@ end

Base.IteratorSize(::Type{<:MatrixElem}) = Base.HasShape{2}()

Base.keys(M::MatElem) = CartesianIndices(axes(M))
Copy link
Member

Choose a reason for hiding this comment

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

could you add a simple test exercising this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@thofma thofma enabled auto-merge (squash) November 15, 2024 20:30
@thofma thofma merged commit 21aac12 into Nemocas:master Nov 15, 2024
29 checks passed
@lgoettgens lgoettgens deleted the lg/keys-MatElem branch November 15, 2024 22:01
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