Skip to content
New issue

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

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

Already on GitHub? # to your account

BUG or user error? #40

Open
sglyon opened this issue Apr 28, 2015 · 1 comment
Open

BUG or user error? #40

sglyon opened this issue Apr 28, 2015 · 1 comment

Comments

@sglyon
Copy link

sglyon commented Apr 28, 2015

Consider this example:

julia> x = rand(2, 10);

julia> bar = x[:,1] .- x
2x10 Array{Float64,2}:
 0.0  0.598825  0.259229  0.795142  0.922404  -0.0185507  0.34638   0.296326   0.206585  0.150938
 0.0  0.077272  0.184968  0.309547  0.612241   0.410853   0.370693  0.377315  -0.286029  0.236791

julia> @devec foo = x[:, 1] .- x
ERROR: DimensionMismatch("dimensions must match")
 in promote_shape at operators.jl:190
 in ewise_shape at /Users/sglyon/.julia/v0.4/Devectorize/src/meta_tools.jl:190
 in anonymous at no file

Am I doing something wrong here?

@lindahua
Copy link
Owner

The problem is that Devectorize is not supporting broadcasting yet.

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

No branches or pull requests

2 participants