Re: [julia-users] Benchmarking study: C++ < Fortran < Numba < Julia < Java < Matlab < the rest

2014-06-17 Thread Bruno Rodrigues
Hi Pr. Villaverde, just wanted to say that it was your paper that made me try Julia. I must say that I am very happy with the switch! Will you continue using Julia for your research?

Re: [julia-users] repeat()'s docstring: maybe some clarification needed?

2014-06-17 Thread Bruno Rodrigues
for `repeat` you could use as inspiration: > https://github.com/JuliaLang/julia/blob/b320b66db8fb97cc3b96fe4089b7b15528ab346c/test/arrayops.jl#L302 > > — John > > On Jun 12, 2014, at 6:17 AM, Patrick O'Leary > wrote: > > On Thursday, June 12, 2014 7:57:03 AM UTC-

[julia-users] repeat()'s docstring: maybe some clarification needed?

2014-06-12 Thread Bruno Rodrigues
Hi, yesterday I asked for help in the channel to ask how I could achieve something like Matlab's repmat(): Julia also has a repmat() function, but only for two-dimensional arrays, whereas Matlab's implementation works for as many dimensions as you want. I found about repeat() but didn't underst

[julia-users] Re: Repeated array indexing

2014-06-10 Thread Bruno Rodrigues
Great, thank you very much, it is indeed working as expected! On Tuesday, June 10, 2014 3:52:50 PM UTC+2, Gunnar Farnebäck wrote: > > You can do B[E[:],:] or better write E as a vector (rather than a 1x10 > array) directly: > E = [5, 5, 5, 4, 5, 5, 5, 5, 1, 5] > Then B[E,:] works as expected. >

[julia-users] Repeated array indexing

2014-06-10 Thread Bruno Rodrigues
Hi, I posted a first thread but can't find it anywhere, so I probably messed up somewhere. So here is my problem: let's say we have following arrays: B = [17 24 1 8 15; 23 5 7 14 16;4 6 13 20 22; 10 12 19 21 3;11 18 25 2 9] E =[5 5 5 4 5 5 5 5 1 5] If we do

[julia-users] Element selection in an array, for all columns

2014-06-10 Thread Bruno Rodrigues
Hi, I have a question concerning element selection in an array. Suppose you have the following arrays: B = [17 24 1 8 15; 23 5 7 14 16;4 6 13 20 22; 10 12 19 21 3;11 18 25 2 9] E =[5 5 5 4 5 5 5 5 1 5] If I type: B[E] I get: 11 11 11 10 11 11 11 11