-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Change binary_matrix data type to use bitset #17665
Comments
Branch: public/17665 |
comment:2
Hello, You could also consider moving it to Vincent |
comment:3
I will try to ;) |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Commit: |
comment:5
I have compilation errors that I don't know how to fix. It also remains to move the data structure to appropriate directory. Enough for me for tonight. David. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
I also tried to add a file |
comment:8
Replying to @dcoudert:
|
comment:9
I have added file
Should I use a specific command? |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:13
Patch ready to be reviewed. Many thanks to Volker for solving technical issues. |
This comment has been minimized.
This comment has been minimized.
Changed branch from public/17665 to u/jdemeyer/ticket/17665 |
comment:15
Removed some cruft and a compiler warning. New commits:
|
comment:16
Thank you, it is better now. |
comment:17
Hello ! I added a small commit at - binary_matrix_set0(m,row,col)
- m.rows[row][col >> index_shift] |= (<unsigned long>1) << (value & offset_mask)
+ if value:
+ binary_matrix_set1(m,row,col)
+ else:
+ binary_matrix_set0(m,row,col) The purpose of the first code (and of Nothing else to mention, and only my commit now needs a review! Nathann |
comment:18
Have you pushed it on top of what Jeroen did? I don't see your commit. |
comment:19
Yep it is there Nathann |
comment:20
Why did you replace
by
everywhere? The latter is considered legacy syntax. Also: make sure your types match. |
comment:21
Replying to @jdemeyer:
I thought it was better this way, but if it's not the correct cython syntax, we can go back to
It was already Why have you changed the path to the branch? I cannot write to u/jdemeyer/ticket/17665 and I'm unable to see what Nathann's pushed. Best, |
comment:22
Replying to @dcoudert:
It's technically correct but not recommended.
I would personally use Given that
works fine, the same would work for this |
Changed branch from u/jdemeyer/ticket/17665 to u/dcoudert/ticket/17665 |
comment:24
I have implemented requested changes:
Let me know if further changes are needed. New commits:
|
comment:26
Given that bitsets are initialized with zeros, replace
by
In
by
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:28
done. |
comment:29
Jeroen? Have your remarks been correctly addressed? If so, can you set this ticket to Thanks, Nathann |
comment:30
I give positive_review to all changes which are not in |
Reviewer: Jeroen Demeyer, Nathann Cohen |
comment:31
Then it can go. I already reviewed the graph changes. Nathann |
comment:32
Thank you for your help. |
Changed branch from u/dcoudert/ticket/17665 to |
This patch changes the data structure
binary_matrix_t
to use one bitset per row. This enables us to use directly operations on bitsets without casts. It also moves the files todata_structures
.Currently, this data structure is only used for operations on graphs.
CC: @nathanncohen
Component: misc
Author: David Coudert
Branch/Commit:
da02c12
Reviewer: Jeroen Demeyer, Nathann Cohen
Issue created by migration from https://trac.sagemath.org/ticket/17665
The text was updated successfully, but these errors were encountered: