You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really cool to have generic functions in symbolic expressions. Can you overload promote_symype to get that behavior? In my case I have a bunch of functions indexed by a dimension. So I have
abstract type Form <:Numberendstruct Form0 <:Formendstruct Form1 <:Formendstruct Form2 <:Formendd_0(::Form0)::Form1d_1(::Form1)::Form2d_2(::Form2)::Form3
and I would like to use d(::Form)::Form to declare all of them and then tell promote symtype the fact that you have to increment the dimension. Is that possible?
Multiple dispatch would also be nice, but could be avoided.
The text was updated successfully, but these errors were encountered:
It would be really cool to have generic functions in symbolic expressions. Can you overload
promote_symype
to get that behavior? In my case I have a bunch of functions indexed by a dimension. So I haveand I would like to use
d(::Form)::Form
to declare all of them and then tell promote symtype the fact that you have to increment the dimension. Is that possible?Multiple dispatch would also be nice, but could be avoided.
The text was updated successfully, but these errors were encountered: