Add bounds checks to lax

Aperta
#291 0 commenti 0 reazioni 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
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust

Direzione di ricerca

Start by reviewing the LAPACK-calling methods in the lax crate and how they accept layouts and slices. Examine ndarray::ArrayBase conversions and the proposed LapackArrayView and LapackArrayViewMut types. Done means preventing out-of-bounds reads through checked bounds or an explicitly unsafe API.

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

Descrizione

bug

For the methods in the lax crate which call LAPACK, we need to either add bounds checks (i.e. checking that the provided layout will not cause an out-of-bounds read for the corresponding slice) or make the methods unsafe.

My preference would actually be to change the API, introducing LapackArrayView and LapackArrayViewMut types which combine the layout and slice together into a single type and have checked conversions from ndarray::ArrayBase.

Lingua principale
Rust
Stelle
452
Fork
95
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-linalg

Tutte le issue di rust-ndarray/ndarray-linalg

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.