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 — Support `A.power(0)` by eriknw · Pull Request #518 · python-graphblas/python-graphblas Conversation
Member
CC @michelp who requested this. When n=0, I decided to create a complete diagonal matrix using the identity of the binaryop if the identity exists (and raise if it doesn't). We want the following equality to hold: I = A.power(0, semiring) semiring(I @ A @ I).isequal(A) We could try to make the diagonal more sparse to better support hypersparse matrices, but this would need to determine both nonempty rows and nonempty columns, because CC @jim22k. When we added
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.
Codecov Report
@@ Coverage Diff @@ ## main #518 +/- ## ========================================== + Coverage 99.20% 99.24% +0.04% ========================================== Files 95 95 Lines 21291 21305 +14 Branches 3999 4001 +2 ========================================== + Hits 21121 21144 +23 + Misses 124 112 -12 - Partials 46 49 +3 |
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.
There was an error while loading. Please reload this page.