Same with Apprentice.4 :

[(x,y) for x in linspace(0,1,10), y in linspace(0,1,10)]

meshgrid() isn't included in Julia because it's almost never really needed.

Good work on these exercises, although I fear that the questions, being 
designed for numpy, may not accurately reflect typical julia programming 
patterns and idioms. While numpy and Matlab both place a lot of emphasis on 
vectorization, there is no need at all to vectorize many element-wise 
operations in Julia. In fact, vectorization often makes code both harder to 
read and less efficient. Although I see that you've opted for loops in some 
of the more advanced exercises, which is good.

Another thing is that more functional-type coding is also emphasized in 
julia. Here's a solution for Expert.4 (which I notice you've left empty):

reduce(+, [A*x for A in matlist, x in veclist])

On Monday, June 23, 2014 2:43:32 AM UTC+12, Michiaki Ariga wrote:
>
> Hi all,
>
> I'm a Julia newbee, and I'm trying to learn Julia and wrote Julia version 
> of rougier's 100 numpy exercises(
> http://www.loria.fr/~rougier/teaching/numpy.100/index.html).
>
> https://github.com/chezou/julia-100-exercises
>
> I'd like you to tell me more "julia way" or something wrong with.
>
> Best regards,
> Michiaki
>

Reply via email to