Thank you for your kind replies.

I noticed that I'm not familiar with array comprehension style in Julia.
I added your solutions to my repos.
(If you have any problem to do it, please tell me)

As Alireza said, this is just a translation from numpy, but I believe there 
are good questions suitable for Julia.
Why don't you propose more Julia like exercises using pull request!
(Especially, I think harven's Generators exercise is good for example.)

I have a question.

Alireza told me solution for Expert.4 as following.

> 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])

It seems to return scalar value 800000, but original numpy version's result 
is as following 20x1 vector.
How can I reduce keeping array?

```
[[ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]
 [ 200.]]
```


2014年6月22日日曜日 23時43分32秒 UTC+9 Michiaki Ariga:
>
> 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