I work with Julia and cannot make multidimensional array decisions work. I use the 0.20-pre nightly build for OSX; perhaps this could be a build error. However, I suspect this is a user error.
Suppose I want to complete something like:
5x2 Array 1 6 2 7 3 8 4 9 5 10
And I do not want to just call reshape . From what I can say, a multidimensional array should be generated something like this: [(x, y) for x in 1:5, y in 6:10] . But this spawns an array of 5x5 tuples:
julia> [(x, y) for x in 1:5, y in 6:10] 5x5 Array{(Int64,Int64),2}: (1,6) (1,7) (1,8) (1,9) (1,10) (2,6) (2,7) (2,8) (2,9) (2,10) (3,6) (3,7) (3,8) (3,9) (3,10) (4,6) (4,7) (4,8) (4,9) (4,10) (5,6) (5,7) (5,8) (5,9) (5,10)
Or maybe I want to generate a set of values ββand a logical code for each:
5x2 Array 1 false 2 false 3 false 4 false 5 false
Again, I can only create an array of tuples with {(x, y) for x in 1:5, y=false} . If I remove the parsers around x, y , I get ERROR: syntax: missing separator in array expression . If I wrap x, y in something, I always get this type of output - Array , Array{Any} or Tuple .
My guess: there is something I just can't get here. Anyone who wants to help me understand that?