Masked arrays
まだ誰も着手していません。
評価
調査の方向性
No files, tests, or entry points are named. Start by reviewing ndarray's current array trait and abstractions, then compare the proposed wrapper and mask cases against those constraints. Done would require a settled implementation direction for masked arrays, rather than an unresolved design discussion.
索引モデルが issue の本文から書いたものです。
説明
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 additional mask object: struct MaskedArray<A, M>{ array: A, mask: M, }
The mask itself should be a trait (and/or enum?) to handle the following cases:
- empty (no elements are masked)
- hard mask: a bool array with the same shape as the data array (masking by coordinate)
- no-data value (masking by value)
- predicate (masking by value and/or coordinate)
The problem with this approach is that there is currently no array trait which is needed for the decorator pattern.
- 主要言語
- Rust
- スター
- 4.3k
- フォーク
- 391
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rust-ndarray/ndarray のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
rust-ndarray/ndarray#1612 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
rust-ndarray/ndarray#1617 · コメント 1 件 ·
-
bug good first issue
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
rust-ndarray/ndarray#1615 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
rust-ndarray/ndarray#1610 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
rust-ndarray/ndarray#1609 ·