A few extensions I've needed of ndarray
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start by reviewing the existing ndarray APIs around ArrayBase, Dimension, NdFloat, and fold, then read the discussion for decisions about the proposed methods. The scope is not settled: confirm which extensions, if any, are wanted and clarify the fold deprecation question before defining completion criteria.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Relevant to any dimension:
trait MyArr<S: Data<Elem=A>, A: NdFloat, D: Dimension>
{
// Yes, trivial with from_elem, but useful enough.
fn ones(dim: D) -> ArrayBase<S,D>;
// Also very common stuff
fn powf(&self, exp: A) -> ArrayBase<Vec<A>,D>;
fn sqr(&self) -> ArrayBase<Vec<A>,D>;
fn norm(&self) -> A;
fn max(&self) -> A;
}
Relevant to matrices only:
trait Mat<D: NdFloat> {
fn sum_sqr_cw(&self) -> VE; // column wise sum of squares
// Copy out a submatrix selecting arbitrary rows and columns from self.
fn submatrix(&self, rows: &Vec<Ix>, columns: &Vec<Ix>) -> MA;
}
BTW, I receive a warning that fold is deprecated because it forces a particular order. I am not sure what you mean by that, and what is a good replacement for it.
I can submit a PR for those if welcome.
- 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rust-ndarray/ndarray
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
rust-ndarray/ndarray#1612 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
rust-ndarray/ndarray#1617 · 1 commento ·
-
Stack overflow in `triu` Apertabug good first issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
rust-ndarray/ndarray#1615 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
rust-ndarray/ndarray#1610 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
rust-ndarray/ndarray#1609 ·
Tutte le issue di rust-ndarray/ndarray
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
MystenLabs/sui#28056 · 1 commento ·
-
type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Luminous-Dynamics/mycelix#2577 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
registrystack/registry-stack#1239 ·
-
package-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
msys2/MINGW-packages#31806 ·