Fixed axis length support similiar to `Eigen`

オープン
#1,136 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

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

評価

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

調査の方向性

Start by reviewing the Dimension and ArrayRepr traits, including the possible Data refactor, and the FixedIx2 design described in the issue. Check the constraints around const_evaluatable_checked, specialization, and mixing fixed and dynamic axes; done would require an agreed design and implementation plan for fixed axis lengths.

索引モデルが issue の本文から書いたものです。

説明

In Eigen, We can write Matrix<float, 4, 4> to represent a matrix with fixed 4x4 size. In Rust, I would imaging syntax similar to ArrayBase<Array2Repr<T, 4, 4>, FixedIx2<4, 4>>, which has no allocation, const bound check and enable better simd instructions.

I can see several difficulty implementing this:

  1. Dimension trait currently requires Add/Sub/Mul, which doesn't make sense in fixed length.
  2. ArrayRepr requires exact generic argument match to FixedIx2. This might requires refactor to Data or Dimension traits.
  3. Enable better simd instructions on specific axis length might require #[feature(const_evaluatable_checked)] and #[feature(specialization)], and both of them are incomplete feature.
  4. Mixing fixed axis length and dynamic axis length in one matrix seems hard.
主要言語
Rust
スター
4.3k
フォーク
391
PR マージ指標
30日以内にマージされた PR はありません

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

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

はじめの一歩

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

rust-ndarray/ndarray のほかの issue

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

似ている issue

Rust の issue をもっと見る

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

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