-
Notifications
You must be signed in to change notification settings - Fork 18
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
Row Vector Dimension #29
Comments
If you can use julia 0.4, consider trying |
For |
Not sure I follow. |
I'm looking at slice.jl here: https://github.com/BioJulia/IntervalTrees.jl/blob/master/src/slice.jl . The inner constructor creates an array of a fixed size and the push! and setindex! methods populate it with values. I didn't mean to suggest the slice was growable. Were you referring to a different slice implementation? |
Yes, the one in base: https://github.com/JuliaLang/julia/blob/master/base/subarray.jl |
Ah, that explains it. Using Julia Version 0.4.0-dev+5149 (2015-06-01 18:58 UTC) Commit 317a4d1* (16 days old master)
Using Julia Version 0.4.0-dev+5439 (2015-06-18 13:48 UTC) Commit a23caa0* (0 days old master):
It seems strange the double for loop is slower now that it was 16 days ago. |
Hmm, sounds like a possible regression. Might be worth filing as an issue. |
Is this still a problem? |
It is fixed. |
I am using ArrayViews to loop over a big array and operate on little slices of it. It works extremely well and is very convenient, but I noticed that if I am extracting a row vector from a high dimensional array (N > 2), the result is a 2 dimensional array view.
For example
gives a
1x2 ArrayViews.StridedView{Float64,2,0,Array{Float64,4}}:
I would have expected this to give a 1 dimensional strided view, rather than a 2 dimensional view. Is this the expected behavior?
The text was updated successfully, but these errors were encountered: