Title: How to drop zeros for a matrix ? · Issue #539 · python-graphblas/python-graphblas · GitHub
Open Graph Title: How to drop zeros for a matrix ? · Issue #539 · python-graphblas/python-graphblas
X Title: How to drop zeros for a matrix ? · Issue #539 · python-graphblas/python-graphblas
Description: From GraphBLAS/LAGraph#28, C-API can use GrB_assign (A, A, NULL, A, GrB_ALL, nrows, GrB_ALL, ncols, Replace) ; to drop zeros for A. But A[:A.nrows, :A.ncols] = A[:A.nrows, :A.ncols] does not work. I need to count non-zero items columnwis...
Open Graph Description: From GraphBLAS/LAGraph#28, C-API can use GrB_assign (A, A, NULL, A, GrB_ALL, nrows, GrB_ALL, ncols, Replace) ; to drop zeros for A. But A[:A.nrows, :A.ncols] = A[:A.nrows, :A.ncols] does not work. ...
X Description: From GraphBLAS/LAGraph#28, C-API can use GrB_assign (A, A, NULL, A, GrB_ALL, nrows, GrB_ALL, ncols, Replace) ; to drop zeros for A. But A[:A.nrows, :A.ncols] = A[:A.nrows, :A.ncols] does not work. ...
Opengraph URL: https://github.com/python-graphblas/python-graphblas/issues/539
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to drop zeros for a matrix ?","articleBody":"From \u003chttps://github.com/GraphBLAS/LAGraph/issues/28\u003e, C-API can use `GrB_assign (A, A, NULL, A, GrB_ALL, nrows, GrB_ALL, ncols, Replace) ;` to drop zeros for A. But `A[:A.nrows, :A.ncols] = A[:A.nrows, :A.ncols]` does not work.\r\n\r\nI need to count non-zero items columnwise. But `gb.binary.gt(mxIn , 0)` is BOOL and cannot do sum, `gb.unary.one(mxIn).new()` just set every element to one including zeros and false(s).\r\n","author":{"url":"https://github.com/galaxy001","@type":"Person","name":"galaxy001"},"datePublished":"2024-02-20T02:01:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/539/python-graphblas/issues/539"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5f6983a5-6c58-45dd-bc68-30145b2de15e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE8E:69671:B292E5:F60C7E:698E135A |
| html-safe-nonce | 913eccdc6611c32b2c1dc89444a846f368335977359989fa5b965db889388a43 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRThFOjY5NjcxOkIyOTJFNTpGNjBDN0U6Njk4RTEzNUEiLCJ2aXNpdG9yX2lkIjoiNTYxMTA1NjYyNDI5MjQ2NzU0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3c41a97456e19d650b9593a6737471f1ad8297710e443727ec5180281a25b750 |
| hovercard-subject-tag | issue:2143391961 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-graphblas/python-graphblas/539/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f6a8c668d27f8632789bc896b3bb2791226e8873e17c08384514f9ab8bba15f2/python-graphblas/python-graphblas/issues/539 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f6a8c668d27f8632789bc896b3bb2791226e8873e17c08384514f9ab8bba15f2/python-graphblas/python-graphblas/issues/539 |
| og:image:alt | From GraphBLAS/LAGraph#28, C-API can use GrB_assign (A, A, NULL, A, GrB_ALL, nrows, GrB_ALL, ncols, Replace) ; to drop zeros for A. But A[:A.nrows, :A.ncols] = A[:A.nrows, :A.ncols] does not work. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | galaxy001 |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdf74c91c9ac187cc5cd7b14d4af2d6ef3e18136d002f5d36253f8538e97ee4c |
| turbo-cache-control | no-preview |
| go-import | github.com/python-graphblas/python-graphblas git https://github.com/python-graphblas/python-graphblas.git |
| octolytics-dimension-user_id | 103965858 |
| octolytics-dimension-user_login | python-graphblas |
| octolytics-dimension-repository_id | 221014819 |
| octolytics-dimension-repository_nwo | python-graphblas/python-graphblas |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 221014819 |
| octolytics-dimension-repository_network_root_nwo | python-graphblas/python-graphblas |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1a5a3e7bbfb3486980e340c242368684156fba87 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width