GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — Allow masks to be combined with `|` and`&` by eriknw · Pull Request #267 · python-graphblas/python-graphblas Conversation
Member
Closes #234 These recipes are much faster than the equivalent recipes in the docstrings, but they still aren't hyper-optimized (they're only semi-optimized). As with Currently, all recipes return structural masks that may be complemented. It's not required for them to be structural--perhaps it would be better if some were value masks.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Coverage increased (+0.005%) to 99.341% when pulling 7cd2fdd on eriknw:mask_and_or into ca75633 on python-graphblas:main. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The code all looks good, but the comments are technically wrong.
I think the recipe needs to be:
>>> val = Matrix(bool, nrows, ncols)
>>> val(mask1) << True
>>> val(mask2, replace=True) << val
>>> new_mask = val.S
The same recipe should be listed in the comments for `.new()` as well.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Updated docstrings. We came up with the same solution, which is a good sign. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Advanced Notation
There was an error while loading. Please reload this page.