I did not pay attention to stackoverflow post. There all code is wrapped around a function for some. However, I was talking about examples here as in for banana=1:NoIter xprime=ones(Nalal,Naa) W_temp = spl(xprime[:]) end
If all code run as it shown in the example here then Nalal, Naa are going to be checked for their types and 'ones' will be dispatced accordingly for each iteration in the loop. Having looked at stackoverflow post, there are some differences. I cannot try the codes right now. I wish I could tell something practical perspective using the code actually. Regards