Hello everyone,
I recently upgraded to Julia 5.0, and experienced something really weird.
Assume I generate a matrix X of random numbers, such that
X=randn(10,100,4);
and let me build the median of, say, the first element of the table along
its first dimension
tmp=median(X[1,:,:],1)
This works w/o any problem, and i can similarly build
tmp=median(X[2,:,:],1) or tmp=median(X[5,:,:],1)
But now let's use a loop to do it for each element
for i in 1:10
tmp=median(X[i,:,:],1)
println(tmp)
end
Then I get the following message
LoadError: AssertionError: frame.inferred
while loading In[187], in expression starting on line 2
in typeinf_ext(::LambdaInfo) at ./inference.jl:1645
where line 2 actually refers to the line starting by for. I must do something
wrong, but I cannot see it. Any help would be greatly appreciated.
Thanks a lot
Fabrice