Fixed axis length support similiar to `Eigen`

Aperta
#1,136 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
rust
Ambito
data, performance

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Rust
Stelle
4.3k
Fork
391
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rust-ndarray/ndarray

Tutte le issue di rust-ndarray/ndarray

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.