AlgebraicJulia / AlgebraicJulia/DiagrammaticEquations.jl

Constant Folding

Aperta
#51 6 commenti 0 reazioni 1 assegnatario Rivendicata da @lukem12345 Vedi su GitHub
enhancement
Lingua principale
Julia
Stelle
20
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Currently, we perform type inference on Decapodes to infer the degree and primality of differential forms.

However, we could also infer that computations derived solely from constants are also constants. I.e. Constant Folding is a special case of type inference on Variables.

So, we should leverage and augment existing type inference machinery to perform constant folding. The compilation of these down to simulation code is in the realm of Decapodes. The scope of a closing PR for DiagrammaticEquations is to just change uninferred nodes (and optionally Form-typed nodes) to constants when possible.

As with most PRs, this feature would be written differently if we stored whether a form is constant or not separately from the type of differential form it may be.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.