Get rid of `ComponentMatrix` and higher-order `ComponentArray`s?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Non viene indicato alcun file sorgente né alcun test. Inizia esaminando le issue e le pull request collegate relative all’indicizzazione, alla concatenazione e all’algebra lineare, quindi analizza i quattro utilizzi esterni segnalati di ComponentMatrix. Per considerarlo completato servirebbero una direzione concordata e una risoluzione coordinata delle questioni relative a compatibilità, utilizzo e comportamento di Base.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
This is a very disruptive proposition, I know, but hear me out. The reason I'm suggesting it is because higher-order ComponentArrays are
- still a bit buggy
- not widely used
- keeping
Basefrom doing its job
Still a bit buggy
For as long as I can remember, the doc has stated:
Higher dimensional ComponentArrays can be created too, but it's a little messy at the moment.
Indeed, ComponentMatrix gives rise to a number of issues like
Indexing
- https://github.com/jonniedie/ComponentArrays.jl/issues/257
- https://github.com/jonniedie/ComponentArrays.jl/issues/248
- https://github.com/jonniedie/ComponentArrays.jl/pull/249
Concatenation
- https://github.com/jonniedie/ComponentArrays.jl/issues/254
- https://github.com/jonniedie/ComponentArrays.jl/issues/168
- https://github.com/jonniedie/ComponentArrays.jl/issues/113
- https://github.com/jonniedie/ComponentArrays.jl/pull/169
Linear algebra operations
- https://github.com/jonniedie/ComponentArrays.jl/issues/187#issuecomment-1426937580
- https://github.com/jonniedie/ComponentArrays.jl/issues/128#issuecomment-1138059402
- https://github.com/jonniedie/ComponentArrays.jl/pull/233
- https://github.com/jonniedie/ComponentArrays.jl/pull/170
Basically, as soon as we touch matrices, the number of necessary overloads grows out of control, and no one has time to play whack-a-mole.
Not widely used
If we take a look at the search
https://github.com/search?q=language%3AJulia+ComponentMatrix&type=code
and exclude forks, we find exactly 4 repos where ComponentMatrix is used:
- MuseInference.jl by @marius311: one linalg overload
- MacroModeling.jl by @thorek1: one commented line
- Flight.jl by @e271828e: seems like a legitimate use
- MTKHelpers.jl by @bgctw: not sure what this does exactly but it has type piracy
In addition, @vpuri3 and @dingraha have recently submitted PRs related to ComponentMatrix, so perhaps they use it too.
Keeping Base from doing its job
In several of the bugs outlined above, @mcabbott and I think that just removing the higher-order ComponentArrays would allow functions from Base (like stack or hcat) to take over and do the right thing. But that is still an untested hypothesis.
Upsides of ComponentMatrix
On the other hand it is true that this format has good things going for it. Most notably, the ability to index block by block, as demonstrated in the ODE example
- Lingua principale
- Julia
- Stelle
- 378
- Fork
- 43
- Merge medio
- 6h 49m
- PR unite (30g)
- 3
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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 SciML/ComponentArrays.jl
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
SciML/ComponentArrays.jl#344 ·
-
Looping over nested fieldsAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
SciML/ComponentArrays.jl#338 ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
SciML/ComponentArrays.jl#337 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
SciML/ComponentArrays.jl#328 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
SciML/ComponentArrays.jl#321 · 1 commento ·
Tutte le issue di SciML/ComponentArrays.jl
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
MagneticResonanceImaging/MRIReco.jl#366 ·
I maintainer di solito rispondono entro 3 giorni
-
`AdamW` gives `NaN` for zero-gradient entries of `Float16` parameters (epsilon underflows to 0)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
FluxML/Optimisers.jl#253 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
JuliaGraphs/GraphNeuralNetworks.jl#736 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno