AlgebraicJulia / AlgebraicDynamics.jl

Building dynamical systems compositionally
https://algebraicjulia.github.io/AlgebraicDynamics.jl/
MIT License
66 stars 13 forks source link

convenient macro for directed composition? #56

Open slwu89 opened 3 years ago

slwu89 commented 3 years ago

Hi, is there a similar macro to @relation that can be used to define the composition pattern for systems of continuous machines? The examples construct them by hand for directed composition. Thanks!

epatters commented 3 years ago

Yes, you can use the @program macro to define a directed wiring diagram using the ordinary notation for function application. I don't know if there are examples of usage with AlgebraicDynamics (@slibkind?) but you can see some examples of using the macro here.

slibkind commented 3 years ago

Unfortunately, there aren't (as of yet) any examples using the @program macro in AlgebraicDynamics