Title: Masked arrays · Issue #127 · rust-ndarray/ndarray · GitHub
Open Graph Title: Masked arrays · Issue #127 · rust-ndarray/ndarray
X Title: Masked arrays · Issue #127 · rust-ndarray/ndarray
Description: Numpy supports masked arrays which is very useful for many use-cases. Are there any plans how a similar feature could be implemented for rust-ndarray? My current idea would be to build a decorator which wraps an array and contains an add...
Open Graph Description: Numpy supports masked arrays which is very useful for many use-cases. Are there any plans how a similar feature could be implemented for rust-ndarray? My current idea would be to build a decorator ...
X Description: Numpy supports masked arrays which is very useful for many use-cases. Are there any plans how a similar feature could be implemented for rust-ndarray? My current idea would be to build a decorator ...
Opengraph URL: https://github.com/rust-ndarray/ndarray/issues/127
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Masked arrays","articleBody":"Numpy supports masked arrays which is very useful for many use-cases. Are there any plans how a similar feature could be implemented for rust-ndarray?\n\nMy current idea would be to build a decorator which wraps an array and contains an additional mask object: `struct MaskedArray\u003cA, M\u003e{\n array: A,\n mask: M,\n}`\n\nThe mask itself should be a trait (and/or enum?) to handle the following cases:\n- _empty_ (no elements are masked)\n- _hard mask:_ a bool array with the same shape as the data array (masking by coordinate)\n- _no-data value_ (masking by value)\n- _predicate_ (masking by value and/or coordinate)\n\nThe problem with this approach is that there is currently no array trait which is needed for the decorator pattern.\n","author":{"url":"https://github.com/jdroenner","@type":"Person","name":"jdroenner"},"datePublished":"2016-03-05T19:18:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/127/ndarray/issues/127"}
| 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:bdd723fc-4662-8718-f1ad-2cb464611b8a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C468:4DECD:2EFA1FB:3CBEA43:6974EED9 |
| html-safe-nonce | cee8321a3ca37cb08b586ccc7cf583ee2ea44c1ca2891299ff4347d179d9e4c0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDY4OjRERUNEOjJFRkExRkI6M0NCRUE0Mzo2OTc0RUVEOSIsInZpc2l0b3JfaWQiOiIzODUzMjcxMjAzMTkxMjU0NzQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8c2bb8dd8d87c277a35bc31d8c4827256674f7ebec2d57ba18fb3325b4e93c3a |
| hovercard-subject-tag | issue:138710317 |
| 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/rust-ndarray/ndarray/127/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8cbc0b46d90f683ea55516f21fca3936c3b2b996d16f66593ed843678e70b701/rust-ndarray/ndarray/issues/127 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8cbc0b46d90f683ea55516f21fca3936c3b2b996d16f66593ed843678e70b701/rust-ndarray/ndarray/issues/127 |
| og:image:alt | Numpy supports masked arrays which is very useful for many use-cases. Are there any plans how a similar feature could be implemented for rust-ndarray? My current idea would be to build a decorator ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jdroenner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/rust-ndarray/ndarray git https://github.com/rust-ndarray/ndarray.git |
| octolytics-dimension-user_id | 44419403 |
| octolytics-dimension-user_login | rust-ndarray |
| octolytics-dimension-repository_id | 22598813 |
| octolytics-dimension-repository_nwo | rust-ndarray/ndarray |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22598813 |
| octolytics-dimension-repository_network_root_nwo | rust-ndarray/ndarray |
| 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 | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width