I’m really confused. Do you want the indices to be 32-bit integers instead > of 64-bit integers? >
Yes. > Isn’t that equivalent to asking for your code to be broken anytime your > vector has more than typemax(Int32) elements? > That is also true but a much more rare case, typemax(Int32) is still a quite high number for an array size and before an Int64 is needed changes are non negligible that a memory requested failed because a big contigous chunk of memory was not available. Well, this is my Matlab experience, which I would like not have repeated in Julia. > > — John > > On Jul 12, 2014, at 12:43 PM, J Luis <jmf...@gmail.com <javascript:>> > wrote: > > > julia> find(x->x>5,a) >> 5-element Array{Int64,1}: >> 1 >> 2 >> 7 >> 8 >> 10 >> > > which very very sadly are Int64. When dealing with large matrices this may > lead to a large memory waste. These almost mandatory 64 bits issue is one > the things that annoyed me more in Matlab for many times it was the > difference between having something work ... or not > > >