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

Doesn't recognize scalar variables? #28

Open
randy3k opened this issue Apr 29, 2014 · 0 comments
Open

Doesn't recognize scalar variables? #28

randy3k opened this issue Apr 29, 2014 · 0 comments

Comments

@randy3k
Copy link

randy3k commented Apr 29, 2014

It seems that Devectorize doesn't recognize operations on scalar variables.

julia> a=1.0; b=2.0; x=[1.,2.];

julia> @devec y=(a/b) .*x
ERROR: DeError("Devectorize does not support /, please use ./ to express element-wise division.")

However, changing / to ./ will make it work. But then it makes Devectroize less magical.

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