Masked arrays

オープン
#127 コメント 6 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
rust
領域
data

調査の方向性

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 はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rust-ndarray/ndarray のほかの issue

rust-ndarray/ndarray の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。