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 ones for NCRing #1886

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

Add ones for NCRing #1886

wants to merge 1 commit into from

Conversation

fingolfin
Copy link
Member

Also simplify zeros implementation and add some tests

Also simplify zeros implementation and add some tests
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.13%. Comparing base (475eafc) to head (b03d06d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1886      +/-   ##
==========================================
- Coverage   88.13%   88.13%   -0.01%     
==========================================
  Files         120      120              
  Lines       30286    30281       -5     
==========================================
- Hits        26694    26689       -5     
  Misses       3592     3592              

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

Copy link
Collaborator

@lgoettgens lgoettgens left a comment

Choose a reason for hiding this comment

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

fill fills the array with aliases elements. We usually don't want this, but instead every zero or one entry should be it's own object

@fingolfin
Copy link
Member Author

Hrm, I am torn on this.

We "usually don't want that" for our own matrices, but it is what ones and zeros does in Julia, e.g.

julia> M = ones(BigInt, 3, 3)
3×3 Matrix{BigInt}:
 1  1  1
 1  1  1
 1  1  1

julia> M[1,1] === M[1,2]
true

Of course this is not practical for actual use within OSCAR, but that's not what this is about.

Perhaps this is an argument to turn both of these functions into just error like error("please use zero_matrix instead") or so.

@thofma
Copy link
Member

thofma commented Oct 30, 2024

I don't consider it a problem that all elements are identical.

@lgoettgens lgoettgens dismissed their stale review October 31, 2024 07:03

I don't really care

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