Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intercept and replace symbols rather than function calls #35

Open
rdeits opened this issue Oct 12, 2017 · 0 comments
Open

Intercept and replace symbols rather than function calls #35

rdeits opened this issue Oct 12, 2017 · 0 comments

Comments

@rdeits
Copy link
Owner

rdeits commented Oct 12, 2017

instead of turning x + y into _conditional(+, x, y), we could transform it into Var(x) + Var(y) and add appropriate overloads to the Var wrapper type. That would avoid the need to intercept and transform broadcasting operations, since we could just implement (<=)(x::Var, y::Var) = Conditional(<=, x, y) and get [x, x] .<= [y, y] for free.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant